mirror of
https://github.com/wxWidgets/wxWidgets.git
synced 2026-08-17 17:02:51 +08:00
CMake: Show check_symbol_exists messages only once
Same behaviour as the built-in check functions.
This commit is contained in:
@@ -183,13 +183,17 @@ else()
|
||||
function(wx_check_symbols_exist_if_not_linux header)
|
||||
foreach(func ${ARGN})
|
||||
string(TOUPPER "HAVE_${func}" var)
|
||||
message(STATUS "Looking for ${func} in ${header}")
|
||||
set(MSG_TYPE STATUS)
|
||||
if(DEFINED ${var})
|
||||
set(MSG_TYPE DEBUG)
|
||||
endif()
|
||||
message(${MSG_TYPE} "Looking for ${func} in ${header}")
|
||||
check_symbol_exists(${func} ${header} ${var})
|
||||
if(${var})
|
||||
message(STATUS "Looking for ${func} in ${header} - found")
|
||||
message(${MSG_TYPE} "Looking for ${func} in ${header} - found")
|
||||
set(${var} 1 PARENT_SCOPE)
|
||||
else()
|
||||
message(STATUS "Looking for ${func} in ${header} - not found")
|
||||
message(${MSG_TYPE} "Looking for ${func} in ${header} - not found")
|
||||
endif()
|
||||
endforeach()
|
||||
endfunction()
|
||||
|
||||
Reference in New Issue
Block a user