Commit 6a622285 authored by Stephen Kelly's avatar Stephen Kelly
Browse files

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.
parent af3d3b88
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment