CMake/Tests/GeneratorExpression/check-common.cmake

6 lines
154 B
CMake

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