Parcourir la source

Update CMakeLists.txt

blueloveTH il y a 1 an
Parent
commit
6ccd0b9178
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  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)