summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CPackConfig/check.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/CPackConfig/check.cmake')
-rw-r--r--Tests/RunCMake/CPackConfig/check.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/Tests/RunCMake/CPackConfig/check.cmake b/Tests/RunCMake/CPackConfig/check.cmake
new file mode 100644
index 0000000..2fc9f11
--- /dev/null
+++ b/Tests/RunCMake/CPackConfig/check.cmake
@@ -0,0 +1,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)