cmake: add function to print dict list
This commit is contained in:
committed by
Sam Lantinga
parent
a787b1c0b7
commit
289b024715
@@ -3058,20 +3058,19 @@ message(STATUS "Compiler: ${CMAKE_C_COMPILER}")
|
||||
message(STATUS "Revision: ${SDL_REVISION}")
|
||||
message(STATUS "")
|
||||
message(STATUS "Subsystems:")
|
||||
foreach(_SUB ${SDL_SUBSYSTEMS})
|
||||
|
||||
find_stringlength_longest_item(SDL_SUBSYSTEMS maxLength)
|
||||
foreach(_SUB IN LISTS SDL_SUBSYSTEMS)
|
||||
string(LENGTH ${_SUB} _SUBLEN)
|
||||
math(EXPR _PADLEN "(${maxLength} + 1) - ${_SUBLEN}")
|
||||
string(RANDOM LENGTH ${_PADLEN} ALPHABET " " _PADDING)
|
||||
string(TOUPPER ${_SUB} _OPT)
|
||||
message_bool_option(${_SUB} SDL_${_OPT})
|
||||
message_bool_option(${_SUB} SDL_${_OPT} ${_PADDING})
|
||||
endforeach()
|
||||
message(STATUS "")
|
||||
message(STATUS "Options:")
|
||||
list(SORT ALLOPTIONS)
|
||||
foreach(_OPT ${ALLOPTIONS})
|
||||
# Get the padding
|
||||
string(LENGTH ${_OPT} _OPTLEN)
|
||||
math(EXPR _PADLEN "(${LONGESTOPTIONNAME} + 1) - ${_OPTLEN}")
|
||||
string(RANDOM LENGTH ${_PADLEN} ALPHABET " " _PADDING)
|
||||
message_tested_option(${_OPT} ${_PADDING})
|
||||
endforeach()
|
||||
message_dictlist(ALLOPTIONS)
|
||||
if("${CMAKE_BUILD_TYPE}" STREQUAL "Debug")
|
||||
message(STATUS "")
|
||||
message(STATUS " CMAKE_C_FLAGS_DEBUG: ${CMAKE_C_FLAGS_DEBUG}")
|
||||
|
||||
Reference in New Issue
Block a user