Small fix for Windows compilation without chrono.

This commit is contained in:
Axel1092 2021-02-04 14:02:57 +01:00 committed by bernat
parent 3c1f515b3f
commit 723d23aaed
1 changed files with 2 additions and 2 deletions

View File

@ -268,10 +268,10 @@ set CMAKE_CONFIG_FILE=%INSTALLATION_DIR%CMakeLists.txt.in
>>"%CMAKE_CONFIG_FILE%" echo.
>>"%CMAKE_CONFIG_FILE%" echo if (CMAKE_BUILD_TYPE STREQUAL "Server")
>>"%CMAKE_CONFIG_FILE%" echo # Prevent exceptions
>>"%CMAKE_CONFIG_FILE%" echo add_compile_options(/EHsc)
if not %USE_CHRONO% == true (
>>"%CMAKE_CONFIG_FILE%" echo add_compile_options(/GR-)
>>"%CMAKE_CONFIG_FILE%" echo add_compile_options(/GR-^)
)
>>"%CMAKE_CONFIG_FILE%" echo add_compile_options(/EHsc)
>>"%CMAKE_CONFIG_FILE%" echo add_definitions(-DASIO_NO_EXCEPTIONS)
>>"%CMAKE_CONFIG_FILE%" echo add_definitions(-DBOOST_NO_EXCEPTIONS)
>>"%CMAKE_CONFIG_FILE%" echo add_definitions(-DLIBCARLA_NO_EXCEPTIONS)