[test-suite] r345539 - CMakeLists.txt: Only add rsync target if TEST_SUITE_REMOTE_HOST was specified
Matthias Braun via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 29 14:02:29 PDT 2018
Author: matze
Date: Mon Oct 29 14:02:29 2018
New Revision: 345539
URL: http://llvm.org/viewvc/llvm-project?rev=345539&view=rev
Log:
CMakeLists.txt: Only add rsync target if TEST_SUITE_REMOTE_HOST was specified
Modified:
test-suite/trunk/CMakeLists.txt
Modified: test-suite/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/CMakeLists.txt?rev=345539&r1=345538&r2=345539&view=diff
==============================================================================
--- test-suite/trunk/CMakeLists.txt (original)
+++ test-suite/trunk/CMakeLists.txt Mon Oct 29 14:02:29 2018
@@ -66,11 +66,13 @@ set(TEST_SUITE_REMOTE_CLIENT "ssh" CACHE
set(TEST_SUITE_REMOTE_HOST "" CACHE STRING "Remote execution host")
mark_as_advanced(TEST_SUITE_REMOTE_CLIENT)
-add_custom_target(rsync
- COMMAND ${PROJECT_SOURCE_DIR}/utils/rsync.sh
- ${TEST_SUITE_REMOTE_HOST} ${PROJECT_BINARY_DIR}
- USES_TERMINAL
-)
+if(TEST_SUITE_REMOTE_HOST)
+ add_custom_target(rsync
+ COMMAND ${PROJECT_SOURCE_DIR}/utils/rsync.sh
+ ${TEST_SUITE_REMOTE_HOST} ${PROJECT_BINARY_DIR}
+ USES_TERMINAL
+ )
+endif()
# Run Under configuration for RunSafely.sh (will be set in lit.site.cfg)
set(TEST_SUITE_RUN_UNDER "" CACHE STRING "RunSafely.sh run-under (-u) parameter")
More information about the llvm-commits
mailing list