浏览代码

export uv functions in the cmake build config

Andy Li 6 年之前
父节点
当前提交
663e0eda71
共有 1 个文件被更改,包括 5 次插入0 次删除
  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