Files
CMake/Tests/RunCMake/install/EXPORT-SeparateNamelink.cmake
T
Deniz Bahadir 38bcb5c0a3 export: Do not fail generation for separate namelink only case
Update the change from commit 64690f6df0 (export: Do not fail generation
for namelink-only case, 2020-10-09, v3.19.0-rc1~7^2) to also handle
separate namelink-only and namelink-skip calls.

Fixes: #21529
2020-12-01 07:35:17 -05:00

20 lines
382 B
CMake

enable_language(C)
add_library(foo SHARED empty.c)
install(TARGETS foo EXPORT fooExport
RUNTIME DESTINATION bin
LIBRARY
DESTINATION lib
COMPONENT runtime
NAMELINK_SKIP
)
install(TARGETS foo EXPORT fooExport
LIBRARY
DESTINATION lib
COMPONENT development
NAMELINK_ONLY
)
install(EXPORT fooExport
DESTINATION "lib/cmake/"
FILE "foo.cmake"
)