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.


-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

Reply via email to