Revert "Override optimization and other flags for make based generators."
Some compiler flags may not be passed twice (such as -mllvm
-msan-keep-going), so avoid duplicating CMAKE_C(XX)_FLAGS.
When -DCMAKE_BUILD_TYPE=<type> is set, you can override the default
optimization and debug flags with -DCMAKE_C_FLAGS_<type>=....
This reverts commit 15a238a28d
.
Change-Id: I4e1cf11c49eaf00ad4a2c430454a127b4be20d9e
Reviewed-on: https://code.wireshark.org/review/11597
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
This commit is contained in:
parent
6c1ae95dc7
commit
442314e8b2
|
@ -149,13 +149,6 @@ if( NOT CMAKE_BUILD_TYPE )
|
|||
FORCE)
|
||||
endif()
|
||||
message(STATUS "Configuration types: ${CMAKE_CONFIGURATION_TYPES}")
|
||||
|
||||
# Override optimization and other flags for make based generators
|
||||
foreach (_BT DEBUG RELEASE RELWITHDEBINFO SIZEREL)
|
||||
set( CMAKE_C_FLAGS_${_BT} "${CMAKE_C_FLAGS_${_BT}} ${CMAKE_C_FLAGS}" )
|
||||
set( CMAKE_CXX_FLAGS_${_BT} "${CMAKE_C_FLAGS_${_BT}} ${CMAKE_C_FLAGS}" )
|
||||
endforeach()
|
||||
|
||||
message(STATUS "${CMAKE_BUILD_TYPE}: ${CMAKE_C_FLAGS_RELWITHDEBINFO}")
|
||||
|
||||
# Where to put executables and libraries in the build tree
|
||||
|
|
Loading…
Reference in New Issue