|
|
|
@ -30,7 +30,8 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND NOT CMAKE_CXX_COMPILER_VERSION VERSI |
|
|
|
add_compile_options("-fno-strict-aliasing") |
|
|
|
add_compile_options("-fno-strict-aliasing") |
|
|
|
endif() |
|
|
|
endif() |
|
|
|
|
|
|
|
|
|
|
|
# On MSVC remove /W3, as we are replacing it with /W4 |
|
|
|
# On MSVC remove /W3, as we are replacing it with /W4. Could be removed as of |
|
|
|
|
|
|
|
# 3.15 with this: https://cmake.org/cmake/help/latest/policy/CMP0092.html |
|
|
|
if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC" OR CMAKE_CXX_SIMULATE_ID STREQUAL "MSVC") |
|
|
|
if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC" OR CMAKE_CXX_SIMULATE_ID STREQUAL "MSVC") |
|
|
|
string(REPLACE "/W3" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}") |
|
|
|
string(REPLACE "/W3" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}") |
|
|
|
endif() |
|
|
|
endif() |
|
|
|
|