瀏覽代碼

Update CMakeLists.txt

blueloveTH 1 年之前
父節點
當前提交
6ccd0b9178
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      CMakeLists.txt

+ 3 - 1
CMakeLists.txt

@@ -83,7 +83,9 @@ endif()
 
 if(UNIX)
     target_link_libraries(${PROJECT_NAME} m)
-    target_link_libraries(${PROJECT_NAME} dl)
+    if(PK_ENABLE_OS)
+        target_link_libraries(${PROJECT_NAME} dl)
+    endif()
 endif()
 
 if(PK_MODULE_WIN32)