cmake/Tests/RunCMake/GeneratorExpression/ResultValidator.cmake
2019-11-11 23:01:05 +01:00

7 lines
228 B
CMake

function (CHECK_VALUE test_msg value expected)
if (NOT value STREQUAL expected)
string (APPEND RunCMake_TEST_FAILED "${test_msg}: actual result:\n [[${value}]]\nbut expected:\n [[${expected}]]\n")
endif()
endfunction()