summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/AndroidMK
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-02-14 16:15:48 (GMT)
committerBrad King <brad.king@kitware.com>2018-02-14 16:24:05 (GMT)
commitb6d68766b1a8537a3a130a38aa91936e579da6fd (patch)
tree47374c4b658c68013502208c72a7410b99ab6dfc /Tests/RunCMake/AndroidMK
parent56e1688517ab040cf9554926070830df475980b3 (diff)
downloadCMake-b6d68766b1a8537a3a130a38aa91936e579da6fd.zip
CMake-b6d68766b1a8537a3a130a38aa91936e579da6fd.tar.gz
CMake-b6d68766b1a8537a3a130a38aa91936e579da6fd.tar.bz2
Android.mk: Fix export of static libraries with PRIVATE dependencies
The `LINK_ONLY` generator expression is used to represent private dependencies of static libraries in their `INTERFACE_LINK_LIBRARIES` property value. Fix evaluation of generator expressions during export to support the `LINK_ONLY` genex. Extend the RunCMake.AndroidMK test with a case for this.
Diffstat (limited to 'Tests/RunCMake/AndroidMK')
-rw-r--r--Tests/RunCMake/AndroidMK/AndroidMK.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/RunCMake/AndroidMK/AndroidMK.cmake b/Tests/RunCMake/AndroidMK/AndroidMK.cmake
index 2596e8c..3fbb2cf 100644
--- a/Tests/RunCMake/AndroidMK/AndroidMK.cmake
+++ b/Tests/RunCMake/AndroidMK/AndroidMK.cmake
@@ -4,7 +4,7 @@ add_library(foo foo.cxx)
add_library(car foo.cxx)
add_library(bar bar.c)
add_library(dog foo.cxx)
-target_link_libraries(foo car bar dog debug -lm)
+target_link_libraries(foo PRIVATE car bar dog debug -lm)
export(TARGETS bar dog car foo ANDROID_MK
${build_BINARY_DIR}/Android.mk)
install(TARGETS bar dog car foo DESTINATION lib EXPORT myexp)