aboutsummaryrefslogtreecommitdiff
path: root/paludis
diff options
context:
space:
mode:
authorAvatar Heiko Becker <heirecka@exherbo.org> 2016-12-06 12:42:19 +0100
committerAvatar Saleem Abdulrasool <compnerd@compnerd.org> 2016-12-06 18:25:04 -0800
commit74acea09fd6409131dbfe60d772ba2311f6e28c4 (patch)
tree5acc6eb748e18d794dcf505a47de092e8d1b1c4d /paludis
parentdd75029f2ba556f13643c09d79d4095aaef9202b (diff)
downloadpaludis-74acea09fd6409131dbfe60d772ba2311f6e28c4.tar.gz
paludis-74acea09fd6409131dbfe60d772ba2311f6e28c4.tar.xz
Only build resolver_TEST_promote_binaries if tests are enabled
Otherwise cmake complains when -DENABLE_GTEST=FALSE is passed, because it doesn't know the target.
Diffstat (limited to 'paludis')
-rw-r--r--paludis/resolver/CMakeLists.txt5
1 files changed, 2 insertions, 3 deletions
diff --git a/paludis/resolver/CMakeLists.txt b/paludis/resolver/CMakeLists.txt
index c798025..2101a70 100644
--- a/paludis/resolver/CMakeLists.txt
+++ b/paludis/resolver/CMakeLists.txt
@@ -117,9 +117,8 @@ foreach(test
libpaludisresolver)
endforeach()
if(ENABLE_PBINS)
- paludis_add_test(resolver_TEST_promote_binaries GTEST)
- target_link_libraries(resolver_TEST_promote_binaries
- PRIVATE
+ paludis_add_test(resolver_TEST_promote_binaries GTEST
+ LINK_LIBRARIES
libpaludisresolvertest
libpaludisresolver)
endif()