From 1dabcd12db571e0b51bd21ef6b8a94deaa447737 Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Fri, 23 May 2025 13:37:56 +0800 Subject: [PATCH] Update CMakeLists.txt --- CMakeLists.txt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 55f5bc4f..1aa6c3b4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -44,6 +44,11 @@ if(PK_ENABLE_OS) add_definitions(-DPK_ENABLE_OS=1) endif() +if(PK_ENABLE_DETERMINISM) + add_subdirectory(3rd/dmath/dmath) + add_definitions(-DPK_ENABLE_DETERMINISM=1) +endif() + if(PK_ENABLE_WATCHDOG) add_definitions(-DPK_ENABLE_WATCHDOG=1) endif() @@ -80,10 +85,7 @@ endif() if(PK_ENABLE_DETERMINISM) - add_subdirectory(3rd/dmath/dmath) target_link_libraries(${PROJECT_NAME} dmath) - add_definitions(-DPK_ENABLE_DETERMINISM=1) - if(MSVC) target_link_options(${PROJECT_NAME} PRIVATE /FORCE:MULTIPLE) endif()