|
@@ -39,13 +39,13 @@ if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
|
39
|
39
|
set (WARNINGS "${WARNINGS} -Wno-disabled-macro-expansion")
|
40
|
40
|
set (WARNINGS "${WARNINGS} -Wno-shorten-64-to-32 -Wno-sign-conversion")
|
41
|
41
|
set (OpenRaider_CXX_FLAGS "${OpenRaider_CXX_FLAGS} -std=c++11")
|
42
|
|
- set (OpenRaider_CXX_FLAGS_DEBUG "${OpenRaider_CXX_FLAGS_DEBUG} -g -O0")
|
|
42
|
+ set (OpenRaider_CXX_FLAGS_DEBUG "${OpenRaider_CXX_FLAGS_DEBUG} -g -O0 -ftrapv")
|
43
|
43
|
set (OpenRaider_CXX_FLAGS_RELEASE "${OpenRaider_CXX_FLAGS_RELEASE} -O2 -fomit-frame-pointer")
|
44
|
44
|
set (OpenRaider_CXX_FLAGS_RELEASE "${OpenRaider_CXX_FLAGS_RELEASE} -ffast-math -funroll-loops")
|
45
|
45
|
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
|
46
|
46
|
set (WARNINGS "${WARNINGS} -Wall -Wextra -Wpedantic")
|
47
|
47
|
set (OpenRaider_CXX_FLAGS "${OpenRaider_CXX_FLAGS} -std=c++11")
|
48
|
|
- set (OpenRaider_CXX_FLAGS_DEBUG "${OpenRaider_CXX_FLAGS_DEBUG} -g -O0")
|
|
48
|
+ set (OpenRaider_CXX_FLAGS_DEBUG "${OpenRaider_CXX_FLAGS_DEBUG} -g -O0 -ftrapv")
|
49
|
49
|
set (OpenRaider_CXX_FLAGS_RELEASE "${OpenRaider_CXX_FLAGS_RELEASE} -O2 -fomit-frame-pointer")
|
50
|
50
|
set (OpenRaider_CXX_FLAGS_RELEASE "${OpenRaider_CXX_FLAGS_RELEASE} -ffast-math -funroll-loops")
|
51
|
51
|
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
|