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:
Stephen Kelly 2013-12-26 08:30:30 +01:00
parent af3d3b88be
commit 6a622285a7
1 changed files with 4 additions and 1 deletions

View File

@ -23,7 +23,10 @@ set_property(TARGET sharedlib PROPERTY INTERFACE_COMPILE_DEFINITIONS "SHAREDLIB_
add_library(sharediface INTERFACE)
target_link_libraries(sharediface INTERFACE sharedlib)
install(TARGETS headeronly sharediface sharedlib
install(TARGETS headeronly sharediface
EXPORT expInterface
)
install(TARGETS sharedlib
EXPORT expInterface
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib NAMELINK_SKIP