[CMake] BUILD_INTERFACE genex used even in install(EXPORT...
Stephen Kelly
steveire at gmail.com
Tue Nov 25 10:14:21 EST 2014
Mueller-Roemer, Johannes Sebastian wrote:
> For clarification:
>
> As an imported target can't have debug and optimized keywords, I can't
> simply use $<BUILD_INTERFACE:${Boost_LIBRARIES}>
> $<INSTALL_INTERFACE:\${Boost_LIBRARIES}> But have to do
> $<BUILD_INTERFACE:
> $<$<CONFIG:Debug>:
> ...
Yes, but for the user of the target, it's just
target_link_libraries(mytgt Boost::Coroutine)
This is academic though anyway until someone decides to submit and maintain
IMPORTED targets for Boost, or until Boost decides to make them available
itself. So, for now, you are correct, it's verbose.
Thanks,
Steve.
More information about the CMake
mailing list