CMake/Tests/GeneratorExpression/check-common.cmake

6 lines
148 B
CMake

macro(check var val)
if(NOT "${${var}}" STREQUAL "${val}")
message(SEND_ERROR "${var} is \"${${var}}\", not \"${val}\"")
endif()
endmacro()