mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-25 00:59:19 -06:00
Merge topic 'test-symlink'
6ea883d652 Tests: Avoid output when running symlink check
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !6536
This commit is contained in:
@@ -1656,6 +1656,8 @@ if(BUILD_TESTING)
|
||||
"${CMake_SOURCE_DIR}/Tests/CMakeLists.txt" # random source file that exists
|
||||
"${CMake_BINARY_DIR}/Tests/try_to_create_symlink" # random target file in existing directory
|
||||
RESULT_VARIABLE _symlink_result
|
||||
OUTPUT_VARIABLE _symlink_stdout
|
||||
ERROR_VARIABLE _symlink_stderr
|
||||
)
|
||||
if(_symlink_result EQUAL 0)
|
||||
file(REMOVE "${CMake_BINARY_DIR}/Tests/try_to_create_symlink")
|
||||
|
||||
Reference in New Issue
Block a user