Clang disable global setting of CFLAGS / CXXFLAGS
This was intended to only affect Debug builds, but when using a multi- config generator (XCode, Visual Studio etc) it affects all builds. Disabling for now until we figure out a better way to do this.
This commit is contained in:
parent
24c21bf876
commit
45eb7eaff4
1 changed files with 10 additions and 6 deletions
|
@ -470,12 +470,16 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" OR CMAKE_CXX_COMPILER_ID STREQUAL "Ap
|
|||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
|
||||
endif()
|
||||
|
||||
if (CMAKE_BUILD_TYPE STREQUAL "Debug")
|
||||
set(CMAKE_C_FLAGS
|
||||
"${CMAKE_C_FLAGS} -O0 -fno-omit-frame-pointer -fno-inline-functions")
|
||||
set(CMAKE_CXX_FLAGS
|
||||
"${CMAKE_CXX_FLAGS} -O0 -fno-omit-frame-pointer -fno-inline-functions")
|
||||
endif()
|
||||
# disabled by James - these cause weridness for multi-config generators
|
||||
# since they set thge flags for all configurations
|
||||
# need to find a better way to adjust these
|
||||
|
||||
# if (CMAKE_BUILD_TYPE STREQUAL "Debug")
|
||||
# set(CMAKE_C_FLAGS
|
||||
# "${CMAKE_C_FLAGS} -O0 -fno-omit-frame-pointer -fno-inline-functions")
|
||||
# set(CMAKE_CXX_FLAGS
|
||||
# "${CMAKE_CXX_FLAGS} -O0 -fno-omit-frame-pointer -fno-inline-functions")
|
||||
# endif()
|
||||
|
||||
if (ENABLE_SIMD)
|
||||
if (X86 OR X86_64)
|
||||
|
|
Loading…
Add table
Reference in a new issue