mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-07 22:30:13 -06:00
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.
12 lines
401 B
CMake
12 lines
401 B
CMake
project(build)
|
|
set(CMAKE_BUILD_TYPE Debug)
|
|
add_library(foo foo.cxx)
|
|
add_library(car foo.cxx)
|
|
add_library(bar bar.c)
|
|
add_library(dog foo.cxx)
|
|
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)
|
|
install(EXPORT_ANDROID_MK myexp DESTINATION share/ndk-modules)
|