mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-22 22:31:18 -05:00
38bcb5c0a3
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")
|