summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorAlexander Potapenko <glider@google.com>2014-09-25 09:30:05 +0000
committerAlexander Potapenko <glider@google.com>2014-09-25 09:30:05 +0000
commit2730d13b3ea49764a5aa6535619253d85287dfbc (patch)
tree49aef3ad28d478690505cfc87eea5816d24b6f97 /cmake
parent1af2a73908e308eede547169a5df7fc4c1c96936 (diff)
Follow-up for r217523: fix the dependencies for standalone compiler-rt build.
Patch by Kuba Brecka (kuba.brecka@gmail.com) git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@218444 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake')
-rw-r--r--cmake/Modules/CompilerRTCompile.cmake4
1 files changed, 3 insertions, 1 deletions
diff --git a/cmake/Modules/CompilerRTCompile.cmake b/cmake/Modules/CompilerRTCompile.cmake
index 6aab527a9..af3df8ff4 100644
--- a/cmake/Modules/CompilerRTCompile.cmake
+++ b/cmake/Modules/CompilerRTCompile.cmake
@@ -73,7 +73,9 @@ macro(clang_compiler_add_cxx_check)
add_custom_target(CompilerRTUnitTestCheckCxx
COMMAND bash -c "${CMD}"
COMMENT "Checking that just-built clang can find C++ headers..."
- DEPENDS clang
VERBATIM)
+ if (TARGET clang)
+ ADD_DEPENDENCIES(CompilerRTUnitTestCheckCxx clang)
+ endif()
endif()
endmacro()