From 6ccd0b91780e4ee48d1ff3127c7ed1fdfd8b2cfc Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Thu, 7 Nov 2024 18:16:27 +0800 Subject: [PATCH] Update CMakeLists.txt --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 78e9f545..4b8cd033 100644 --- a/CMakeLists.txt +++ b/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)