mirror of https://github.com/encounter/SDL.git
Adding messages to output CMAKE_C_FLAGS_DEBUG and CMAKE_CXX_FLAGS_DEBUG, this way when using Debug builds you can see which debug flags are set
This commit is contained in:
parent
320666044e
commit
70bd205bb1
|
@ -2384,6 +2384,11 @@ foreach(_OPT ${ALLOPTIONS})
|
||||||
string(RANDOM LENGTH ${_PADLEN} ALPHABET " " _PADDING)
|
string(RANDOM LENGTH ${_PADLEN} ALPHABET " " _PADDING)
|
||||||
message_tested_option(${_OPT} ${_PADDING})
|
message_tested_option(${_OPT} ${_PADDING})
|
||||||
endforeach()
|
endforeach()
|
||||||
|
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
|
||||||
|
message(STATUS "")
|
||||||
|
message(STATUS " CMAKE_C_FLAGS_DEBUG: ${CMAKE_C_FLAGS_DEBUG}")
|
||||||
|
message(STATUS " CMAKE_CXX_FLAGS_DEBUG: ${CMAKE_CXX_FLAGS_DEBUG}")
|
||||||
|
endif()
|
||||||
message(STATUS "")
|
message(STATUS "")
|
||||||
message(STATUS " CFLAGS: ${CMAKE_C_FLAGS}")
|
message(STATUS " CFLAGS: ${CMAKE_C_FLAGS}")
|
||||||
message(STATUS " EXTRA_CFLAGS: ${EXTRA_CFLAGS}")
|
message(STATUS " EXTRA_CFLAGS: ${EXTRA_CFLAGS}")
|
||||||
|
|
Loading…
Reference in New Issue