mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-22 14:23:10 -05:00
7b2dd9dedc
Co-Authored-By: Craig Scott <craig.scott@crascit.com>
14 lines
505 B
CMake
14 lines
505 B
CMake
# Supporting using the CHECK_... message modes if available
|
|
# and fall back to the older behavior if not
|
|
macro(cm_message_checks_compat description startVar passVar failVar)
|
|
if(CMAKE_VERSION VERSION_GREATER 3.16.2019)
|
|
set(${startVar} CHECK_START "${description}")
|
|
set(${passVar} CHECK_PASS)
|
|
set(${failVar} CHECK_FAIL)
|
|
else()
|
|
set(${startVar} STATUS "${description}")
|
|
set(${passVar} STATUS "${description} - ")
|
|
set(${failVar} STATUS "${description} - ")
|
|
endif()
|
|
endmacro()
|