CPackConfig.cmake file generation from CMake test suite. Currently it contains only a simple test without special characters in variable value. Test is not part of RunCMake/CPack as those tests are expected to be run for a specified generator.
8 lines
280 B
CMake
8 lines
280 B
CMake
function(test_variable NAME EXPECTED_VALUE)
|
|
if(NOT "${${NAME}}" STREQUAL "${EXPECTED_VALUE}")
|
|
message(FATAL_ERROR "${NAME}: variable mismatch; expected [${EXPECTED_VALUE}] actual [${${NAME}}]")
|
|
endif()
|
|
endfunction()
|
|
|
|
include(${RunCMake_TEST_BINARY_DIR}/CPackConfig.cmake)
|