Set some specific build options for gcc and clang.
parent
7c0cb383c3
commit
330844dc60
|
@ -10,7 +10,13 @@ endif()
|
|||
if (MTS_CMAKE_INIT)
|
||||
set(MTS_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
|
||||
if (CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang")
|
||||
set(MTS_CXX_FLAGS "-fvisibility=hidden -pipe -march=nocona -mfpmath=sse -ffast-math -Wall -Winvalid-pch")
|
||||
set(MTS_CXX_FLAGS "-fvisibility=hidden -pipe -march=nocona -ffast-math -Wall -Winvalid-pch")
|
||||
endif()
|
||||
if (CMAKE_CXX_COMPILER_ID MATCHES "GNU")
|
||||
set(MTS_CXX_FLAGS "${MTS_CXX_FLAGS} -mfpmath=sse")
|
||||
endif()
|
||||
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||
set(MTS_CXX_FLAGS "${MTS_CXX_FLAGS} -ftemplate-depth=512")
|
||||
endif()
|
||||
if (MTS_CXX_FLAGS)
|
||||
set(CMAKE_CXX_FLAGS "${MTS_CXX_FLAGS} ${CMAKE_CXX_FLAGS}" CACHE
|
||||
|
|
Loading…
Reference in New Issue