Browse Source

export uv functions in the cmake build config

Andy Li 6 năm trước cách đây
mục cha
commit
663e0eda71
1 tập tin đã thay đổi với 5 bổ sung0 xóa
  1. 5 0
      libs/uv/CMakeLists.txt

+ 5 - 0
libs/uv/CMakeLists.txt

@@ -55,6 +55,11 @@ if(WIN32)
         iphlpapi
         userenv
     )
+    target_compile_definitions(uv.hdll
+        PRIVATE
+        UV_EXPORTS
+        BUILDING_UV_SHARED
+    )
 else()
     target_include_directories(uv.hdll
         PRIVATE