summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'Source/kwsys/CMakeLists.txt')
-rw-r--r--Source/kwsys/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/kwsys/CMakeLists.txt b/Source/kwsys/CMakeLists.txt
index 568ae11..3fe16c0 100644
--- a/Source/kwsys/CMakeLists.txt
+++ b/Source/kwsys/CMakeLists.txt
@@ -629,6 +629,10 @@ IF(KWSYS_STANDALONE OR CMake_SOURCE_DIR)
IF(COMMAND SET_TESTS_PROPERTIES)
ADD_TEST(kwsys.testFail ${EXEC_DIR}/testFail)
SET_TESTS_PROPERTIES(kwsys.testFail PROPERTIES WILL_FAIL ON)
+ GET_TEST_PROPERTY(kwsys.testFail WILL_FAIL wfv)
+ IF(NOT $wfv})
+ MESSAGE(FATAL_ERROR "GET_TEST_PROPERTY command does not work")
+ ENDIF(NOT $wfv})
ENDIF(COMMAND SET_TESTS_PROPERTIES)
ENDIF(BUILD_TESTING)
ENDIF(KWSYS_STANDALONE OR CMake_SOURCE_DIR)