Browse Source

Tests: Run CheckSourceTree test using just-built CMake

Update the change from commit 8d453ee751 (Tests: Improve CheckSourceTree
test, 2022-10-05) to drive the test script using the tested CMake
instead of the host CMake, following the convention of other tests.
Brad King 3 years ago
parent
commit
1912d50a70
1 changed files with 3 additions and 3 deletions
  1. 3 3
      Tests/CheckSourceTree/CMakeLists.txt

+ 3 - 3
Tests/CheckSourceTree/CMakeLists.txt

@@ -1,6 +1,6 @@
 add_test(NAME CMake.CheckSourceTree
-  COMMAND ${CMAKE_COMMAND} -D GIT_EXECUTABLE=${GIT_EXECUTABLE}
-                           -D CMake_SOURCE_DIR=${CMake_SOURCE_DIR}
-                           -P ${CMAKE_CURRENT_LIST_DIR}/check.cmake
+  COMMAND ${CMAKE_CMAKE_COMMAND} -D GIT_EXECUTABLE=${GIT_EXECUTABLE}
+                                 -D CMake_SOURCE_DIR=${CMake_SOURCE_DIR}
+                                 -P ${CMAKE_CURRENT_LIST_DIR}/check.cmake
   )
 set_property(TEST CMake.CheckSourceTree PROPERTY RUN_SERIAL 1)