Quellcode durchsuchen

ENH: Test for both commands

Andy Cedilnik vor 20 Jahren
Ursprung
Commit
5f2343bf91
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 2 2
      Source/kwsys/CMakeLists.txt

+ 2 - 2
Source/kwsys/CMakeLists.txt

@@ -634,11 +634,11 @@ IF(KWSYS_STANDALONE OR CMake_SOURCE_DIR)
     ADD_TEST(kwsys.testProcess-7 ${EXEC_DIR}/testProcess 7)
     ADD_TEST(kwsys.testHashSTL ${EXEC_DIR}/testHashSTL)
     ADD_TEST(kwsys.testRegistry ${EXEC_DIR}/testRegistry)
-    IF(COMMAND SET_TESTS_PROPERTIES)
+    IF(COMMAND SET_TESTS_PROPERTIES AND COMMAND GET_TEST_PROPERTY)
       ADD_TEST(kwsys.testFail ${EXEC_DIR}/testFail)
       SET_TESTS_PROPERTIES(kwsys.testFail PROPERTIES WILL_FAIL ON)
       GET_TEST_PROPERTY(kwsys.testFail WILL_FAIL wfv)
       MESSAGE("GET_TEST_PROPERTY returned: ${wfv}")
-    ENDIF(COMMAND SET_TESTS_PROPERTIES)
+    ENDIF(COMMAND SET_TESTS_PROPERTIES AND COMMAND GET_TEST_PROPERTY)
   ENDIF(BUILD_TESTING)
 ENDIF(KWSYS_STANDALONE OR CMake_SOURCE_DIR)