|
@@ -21,14 +21,16 @@ set(CMAKE_EXE_LINKER_FLAGS "-fopenmp")
|
|
|
if(CMAKE_BUILD_TYPE MATCHES Debug)
|
|
|
add_definitions(-DCHECK_STRICTMOD)
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ggdb")
|
|
|
+ message(STATUS "Building DEBUG version")
|
|
|
else()
|
|
|
- set(CMAKE_CXX_FLAGS_RELEASE "-DNDEBUG -O3")
|
|
|
- foreach(FLAG -march=native -mtune=native -funroll-loops)
|
|
|
+ set(CMAKE_CXX_FLAGS_RELEASE "-DNDEBUG -O3")
|
|
|
+ message(STATUS "Building DEBUG version")
|
|
|
+ foreach(FLAG -march=native -mtune=native -funroll-loops)
|
|
|
string(REGEX REPLACE -= _ FLAG_ID ${FLAG})
|
|
|
string(TOUPPER ${FLAG_ID} FLAG_ID)
|
|
|
CHECK_CXX_COMPILER_FLAG(${FLAG} COMPILER_SUPPORTS${FLAG_ID})
|
|
|
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} ${FLAG}")
|
|
|
- endforeach()
|
|
|
+ endforeach()
|
|
|
# For OSX use clang
|
|
|
if(APPLE)
|
|
|
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -mfpmath=sse -Wa,-q")
|