mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 21:31:08 -06:00
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
17 lines
379 B
CMake
17 lines
379 B
CMake
enable_language(CXX)
|
|
add_library(foo SHARED empty.cpp)
|
|
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
|
|
)
|
|
export(EXPORT fooExport FILE "${CMAKE_CURRENT_BINARY_DIR}/foo.cmake")
|