summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CPackConfig/check.cmake
blob: 2fc9f11c2461123f0f69204fd7ece1d7fcd13a37 (plain)
1
2
3
4
5
6
7
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)