mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 21:31:08 -06:00
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.
7 lines
301 B
CMake
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)
|