install: Ensure that install(TARGETS) works with no DESTINATION
INTERFACE_LIBRARY targets have no corresponding files, and so require no DESTINATION to install anything to.
This commit is contained in:
parent
af3d3b88be
commit
6a622285a7
|
@ -23,7 +23,10 @@ set_property(TARGET sharedlib PROPERTY INTERFACE_COMPILE_DEFINITIONS "SHAREDLIB_
|
||||||
add_library(sharediface INTERFACE)
|
add_library(sharediface INTERFACE)
|
||||||
target_link_libraries(sharediface INTERFACE sharedlib)
|
target_link_libraries(sharediface INTERFACE sharedlib)
|
||||||
|
|
||||||
install(TARGETS headeronly sharediface sharedlib
|
install(TARGETS headeronly sharediface
|
||||||
|
EXPORT expInterface
|
||||||
|
)
|
||||||
|
install(TARGETS sharedlib
|
||||||
EXPORT expInterface
|
EXPORT expInterface
|
||||||
RUNTIME DESTINATION bin
|
RUNTIME DESTINATION bin
|
||||||
LIBRARY DESTINATION lib NAMELINK_SKIP
|
LIBRARY DESTINATION lib NAMELINK_SKIP
|
||||||
|
|
Loading…
Reference in New Issue