Commit 6bc5a733 authored by BRAMAS Berenger's avatar BRAMAS Berenger

sorry but in cmakelist at line 144 if CMAKE_CXX_FLAGS_RELEASE is empty in...

sorry but in cmakelist at line 144 if CMAKE_CXX_FLAGS_RELEASE is empty in string replace if fire an assert
parent 89816af2
......@@ -150,7 +150,7 @@ else()
##############################################################################
SET(CMAKE_BUILD_TYPE Release)
# force -O3 in release
# SET(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O3")
SET(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O3")
STRING(REPLACE "-O2" "-O3" CMAKE_CXX_FLAGS_RELEASE ${CMAKE_CXX_FLAGS_RELEASE} )
SET(CMAKE_CXX_FLAGS_TYPE "${CMAKE_CXX_FLAGS_RELEASE}")
# if compiler is intel add -ip
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment