Skip to content

Commit 94d3b37

Browse files
committed
less aggressive math optimization
1 parent 7b791be commit 94d3b37

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ find_package(LibZip)
2828

2929
# set compiler flags, see http://stackoverflow.com/questions/7724569/debug-vs-release-in-cmake
3030
if(OPENMP_FOUND)
31-
set(CMAKE_CXX_FLAGS "${OpenMP_CXX_FLAGS} -Ofast -fno-signed-zeros -fno-trapping-math -Wall -Wno-format-extra-args -Wextra -Wformat-nonliteral -Wno-keyword-macro -Wformat-security -Wformat=2")
31+
set(CMAKE_CXX_FLAGS "${OpenMP_CXX_FLAGS} -O3 -Wall -Wno-format-extra-args -Wextra -Wformat-nonliteral -Wno-keyword-macro -Wformat-security -Wformat=2")
3232

3333
else()
3434
message(WARNING "Configuring without OpenMP!")
35-
set(CMAKE_CXX_FLAGS "-Ofast -fno-signed-zeros -fno-trapping-math -Wall -Wno-format-extra-args -Wextra -Wformat-nonliteral -Wno-keyword-macro -Wformat-security -Wformat=2")
35+
set(CMAKE_CXX_FLAGS "-O3 -Wall -Wno-format-extra-args -Wextra -Wformat-nonliteral -Wno-keyword-macro -Wformat-security -Wformat=2")
3636
endif()
3737

3838
if(GUROBI_FOUND)

0 commit comments

Comments
 (0)