diff options
author | Filipe Cabecinhas <me@filcab.net> | 2016-03-01 15:07:19 +0000 |
---|---|---|
committer | Filipe Cabecinhas <me@filcab.net> | 2016-03-01 15:07:19 +0000 |
commit | 0c6c48e85cdec0a418e0b865ce28c09f11af5631 (patch) | |
tree | c0b3a71b586723138ae3d898ae41ea228d87c1b1 /runtime/CMakeLists.txt | |
parent | a58c44c9385d25ffe53e383a62688d3c36db1c2a (diff) | |
download | clang-0c6c48e85cdec0a418e0b865ce28c09f11af5631.tar.gz |
[cmake] Try to appease the buildbots.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@262340 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'runtime/CMakeLists.txt')
-rw-r--r-- | runtime/CMakeLists.txt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/runtime/CMakeLists.txt b/runtime/CMakeLists.txt index 26d6c1233c..99298e11b1 100644 --- a/runtime/CMakeLists.txt +++ b/runtime/CMakeLists.txt @@ -27,7 +27,10 @@ set(COMPILER_RT_SRC_ROOT ${LLVM_MAIN_SRC_DIR}/projects/compiler-rt) # This is the same behavior (try "internal", then check the LLVM_EXTERNAL_... # variable) as in add_llvm_external_project if(NOT EXISTS ${COMPILER_RT_SRC_ROOT}) - set(COMPILER_RT_SRC_ROOT ${LLVM_EXTERNAL_COMPILER_RT_SOURCE_DIR}) + # We don't want to set it if LLVM_EXTERNAL_COMPILER_RT_SOURCE_DIR is "" + if(${LLVM_EXTERNAL_COMPILER_RT_SOURCE_DIR}) + set(COMPILER_RT_SRC_ROOT ${LLVM_EXTERNAL_COMPILER_RT_SOURCE_DIR}) + endif() endif() if(LLVM_BUILD_EXTERNAL_COMPILER_RT AND EXISTS ${COMPILER_RT_SRC_ROOT}/) |