cmake/Tests/RunCMake/GeneratorExpression/ResultValidator.cmake

7 lines
228 B
CMake
Raw Normal View History

2019-11-11 23:01:05 +01:00
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()