mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 11:30:18 +00:00
Update CMakeLists.txt
Update CMakeLists.txt Update CMakeLists.txt
This commit is contained in:
parent
d28d86339d
commit
cd08c4e022
@ -20,10 +20,6 @@ if(MSVC)
|
|||||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /Ox")
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /Ox")
|
||||||
add_definitions(-DNDEBUG)
|
add_definitions(-DNDEBUG)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(PK_ENABLE_DETERMINISM)
|
|
||||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /Oi-")
|
|
||||||
endif()
|
|
||||||
else()
|
else()
|
||||||
if(NOT CMAKE_BUILD_TYPE STREQUAL "Debug")
|
if(NOT CMAKE_BUILD_TYPE STREQUAL "Debug")
|
||||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O2")
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O2")
|
||||||
@ -87,6 +83,10 @@ if(PK_ENABLE_DETERMINISM)
|
|||||||
add_subdirectory(3rd/dmath/dmath)
|
add_subdirectory(3rd/dmath/dmath)
|
||||||
target_link_libraries(${PROJECT_NAME} dmath)
|
target_link_libraries(${PROJECT_NAME} dmath)
|
||||||
add_definitions(-DPK_ENABLE_DETERMINISM=1)
|
add_definitions(-DPK_ENABLE_DETERMINISM=1)
|
||||||
|
|
||||||
|
if(MSVC)
|
||||||
|
target_link_options(${PROJECT_NAME} PRIVATE /FORCE:MULTIPLE)
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(UNIX AND NOT APPLE)
|
if(UNIX AND NOT APPLE)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user