summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2019-09-25 01:23:05 +0000
committerJonas Devlieghere <jonas@devlieghere.com>2019-09-25 01:23:05 +0000
commitdb90b390998e124908d32cdce07fced974f1b81e (patch)
tree047af807b4ecf902d05be5040a5d95341e12338f
parent9f0f36e02231e86eadaac12f74f6a86e1c5318c1 (diff)
downloadbcm5719-llvm-db90b390998e124908d32cdce07fced974f1b81e.tar.gz
bcm5719-llvm-db90b390998e124908d32cdce07fced974f1b81e.zip
[CMake] Don't modify LLVM_DISTRIBUTION_COMPONENTS if it's not set
Don't try to remove debugserver from LLVM_DISTRIBUTION_COMPONENTS if the list is not set. llvm-svn: 372799
-rw-r--r--lldb/test/CMakeLists.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/lldb/test/CMakeLists.txt b/lldb/test/CMakeLists.txt
index e6c7c57d9c2..2f2fee8a89f 100644
--- a/lldb/test/CMakeLists.txt
+++ b/lldb/test/CMakeLists.txt
@@ -103,8 +103,10 @@ if(CMAKE_HOST_APPLE)
COMMENT "Copying the system debugserver to LLDB's binaries directory for testing.")
# The custom target for the system debugserver has no install target, so we
# need to remove it from the LLVM_DISTRIBUTION_COMPONENTS list.
- list(REMOVE_ITEM LLVM_DISTRIBUTION_COMPONENTS debugserver)
- set(LLVM_DISTRIBUTION_COMPONENTS ${LLVM_DISTRIBUTION_COMPONENTS} PARENT_SCOPE)
+ if (LLVM_DISTRIBUTION_COMPONENTS)
+ list(REMOVE_ITEM LLVM_DISTRIBUTION_COMPONENTS debugserver)
+ set(LLVM_DISTRIBUTION_COMPONENTS ${LLVM_DISTRIBUTION_COMPONENTS} PARENT_SCOPE)
+ endif()
message(STATUS "LLDB tests use out-of-tree debugserver: ${system_debugserver_path}")
list(APPEND LLDB_TEST_COMMON_ARGS --out-of-tree-debugserver)
elseif(TARGET debugserver)
OpenPOWER on IntegriCloud