I am trying to add a library via it's variable(s) in an installed (static library) target, but BUILD_INTERFACE appears to be used for the generation of *-targets-*.cmake even when using install(EXPORT...), instead of INSTALL_INTERFACE:
CMakeLists.txt [...] target_link_libraries(${PROJECT_NAME} PUBLIC $<$<CONFIG:Debug>:$<BUILD_INTERFACE:\${Boost_COROUTINE_LIBRARY_DEBUG}>> $<$<NOT:$<CONFIG:Debug>>:$<BUILD_INTERFACE:\${Boost_COROUTINE_LIBRARY_RELEASE}>> ) [...] install(EXPORT ${PROJECT_NAME}-targets DESTINATION share/cmake) produces a file containing: IMPORTED_LINK_INTERFACE_LIBRARIES_RELEASE "${Boost_COROUTINE_LIBRARY_RELEASE}" Which seems wrong (and since I had to use the variable in BUILD_INTERFACE I can no longer use it from other projects within the same Build -- Johannes S. Mueller-Roemer, MSc Wiss. Mitarbeiter - Interactive Engineering Technologies (IET) Fraunhofer-Institut für Graphische Datenverarbeitung IGD Fraunhoferstr. 5 | 64283 Darmstadt | Germany Tel +49 6151 155-606 | Fax +49 6151 155-139 johannes.mueller-roe...@igd.fraunhofer.de | www.igd.fraunhofer.de
-- 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