mirror of
https://github.com/reactos/CMake.git
synced 2024-12-13 22:58:41 +00:00
7de868c4d7
Use a function instead of a macro so we do not need an extra layer of backslashes. Use a bracket argument to avoid another layer of extra backslashes.
6 lines
154 B
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()
|