Default release version

This commit is contained in:
antao 2018-09-08 21:10:53 +08:00
parent b44c2f9b9e
commit 5ba3e83728
2 changed files with 4 additions and 4 deletions

View File

@ -57,10 +57,10 @@ if(Boost_FOUND)
include_directories(${Boost_INCLUDE_DIRS})
endif()
if (RELEASE STREQUAL YES)
set(CMAKE_CXX_FLAGS "-std=${CMAKE_CXX_STD_FLAGS} -O2 -Wall -fpermissive ${CMAKE_CXX_FLAGS}")
else()
if (DEBUG STREQUAL YES)
set(CMAKE_CXX_FLAGS "-std=${CMAKE_CXX_STD_FLAGS} -g -Wall -fpermissive ${CMAKE_CXX_FLAGS}")
else()
set(CMAKE_CXX_FLAGS "-std=${CMAKE_CXX_STD_FLAGS} -O2 -Wall -fpermissive ${CMAKE_CXX_FLAGS}")
endif()
#string(REPLACE ";" " " CMAKE_CXX_FLAGS "${CXX_FLAGS}")

@ -1 +1 @@
Subproject commit 91d2f285bf0016c38b4bf5b273b14fb1202b7694
Subproject commit 225f87c6c07136744aa72fb5f2fa14076d63cbcb