Ver Fonte

Update CMakeLists.txt

blueloveTH há 1 ano atrás
pai
commit
6ccd0b9178
1 ficheiros alterados com 3 adições e 1 exclusões
  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)