summaryrefslogtreecommitdiffstats
path: root/Source/Checks/cm_message_checks_compat.cmake
blob: 024c397a8b354302b518dd6b959479cac694b003 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# 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()