From cd08c4e022ff5409daca89c4ea813dd14270cc83 Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Fri, 23 May 2025 13:06:06 +0800 Subject: [PATCH] Update CMakeLists.txt Update CMakeLists.txt Update CMakeLists.txt --- CMakeLists.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 52535788..55f5bc4f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -20,10 +20,6 @@ if(MSVC) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /Ox") add_definitions(-DNDEBUG) endif() - - if(PK_ENABLE_DETERMINISM) - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /Oi-") - endif() else() if(NOT CMAKE_BUILD_TYPE STREQUAL "Debug") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O2") @@ -87,6 +83,10 @@ 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() endif() if(UNIX AND NOT APPLE)