summaryrefslogtreecommitdiff
path: root/lib/interception
diff options
context:
space:
mode:
authorMichal Gorny <mgorny@gentoo.org>2017-10-12 18:51:41 +0000
committerMichal Gorny <mgorny@gentoo.org>2017-10-12 18:51:41 +0000
commitc02f2d0abbbccad81ea7dadbd55516f9e171833f (patch)
tree7474773576d04123a704c032406f3617509b3bd4 /lib/interception
parenta09806de6549f1723c5d404e6e7fbf2b9e3cac12 (diff)
[cmake] [interception] Remove duplicate gtest from test COMPILE_DEPS
Fix the gtest dependency to be included in DEPS only, rather than in COMPILE_DEPS + DEPS. The former variable is apparently used to provide unconditional dependencies, while the latter are only used for non-standalone builds. Since they are concatenated, specifying gtest in both is redundant. Furthermore, including it in COMPILE_DEPS causes build failure for standalone builds where 'gtest' target is not present. Differential Revision: https://reviews.llvm.org/D38839 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@315605 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/interception')
-rw-r--r--lib/interception/tests/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/interception/tests/CMakeLists.txt b/lib/interception/tests/CMakeLists.txt
index 782066753..1da0a455b 100644
--- a/lib/interception/tests/CMakeLists.txt
+++ b/lib/interception/tests/CMakeLists.txt
@@ -89,7 +89,7 @@ macro(add_interception_tests_for_arch arch)
InterceptionUnitTests "Interception-${arch}-Test" ${arch}
RUNTIME ${INTERCEPTION_COMMON_LIB}
SOURCES ${INTERCEPTION_UNITTESTS} ${COMPILER_RT_GTEST_SOURCE}
- COMPILE_DEPS gtest ${INTERCEPTION_TEST_HEADERS}
+ COMPILE_DEPS ${INTERCEPTION_TEST_HEADERS}
DEPS gtest
CFLAGS ${INTERCEPTION_TEST_CFLAGS_COMMON}
LINK_FLAGS ${INTERCEPTION_TEST_LINK_FLAGS_COMMON})