diff options
author | Michal Gorny <mgorny@gentoo.org> | 2017-10-12 18:51:41 +0000 |
---|---|---|
committer | Michal Gorny <mgorny@gentoo.org> | 2017-10-12 18:51:41 +0000 |
commit | c02f2d0abbbccad81ea7dadbd55516f9e171833f (patch) | |
tree | 7474773576d04123a704c032406f3617509b3bd4 /lib/interception | |
parent | a09806de6549f1723c5d404e6e7fbf2b9e3cac12 (diff) | |
download | compiler-rt-c02f2d0abbbccad81ea7dadbd55516f9e171833f.tar.gz |
[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.txt | 2 |
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}) |