Browse Source

BUG: possible fix for new SystemInfo test

Ken Martin 19 years ago
parent
commit
08ccfacf03
2 changed files with 4 additions and 5 deletions
  1. 4 0
      CMakeLists.txt
  2. 0 5
      Source/CMakeLists.txt

+ 4 - 0
CMakeLists.txt

@@ -430,3 +430,7 @@ CONFIGURE_FILE("${CMAKE_CURRENT_SOURCE_DIR}/Templates/CTestScript.cmake.in"
   "${CMAKE_CURRENT_BINARY_DIR}/CTestScript.cmake"
   @ONLY IMMEDIATE)
 
+ADD_TEST(SystemInformationNew 
+  "${EXECUTABLE_OUTPUT_PATH}/cmake" --system-information
+  )
+

+ 0 - 5
Source/CMakeLists.txt

@@ -505,11 +505,6 @@ IF(BUILD_TESTING)
     --build-makeprogram ${CMAKE_TEST_MAKEPROGRAM}
     --test-command DumpInformation)
 
-  ADD_TEST(SystemInformationNew 
-    ${CMAKE_CMAKE_COMMAND} -E chdir "${CMake_BINARY_DIR}"
-    "${CMAKE_CMAKE_COMMAND}" --system-information
-    )
-
   ADD_TEST(StringFileTest ${CMAKE_CTEST_COMMAND}
     --build-and-test
     "${CMake_SOURCE_DIR}/Tests/StringFileTest"