Files
CMake/Tests/CheckSourceTree/CMakeLists.txt
Brad King 8d453ee751 Tests: Improve CheckSourceTree test
Re-implement the test using simpler approach.  Enable it only when doing
an out-of-source build with a `.git` source.  Run it last, serially.
Re-use the `git` tool found for version computation.  Print the output
from `git status` without modification.  Rely on `.gitignore` instead
of filtering out paths ourselves.
2022-10-05 12:38:12 -04:00

7 lines
301 B
CMake

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
)
set_property(TEST CMake.CheckSourceTree PROPERTY RUN_SERIAL 1)