> okay, than you could use > find_package(Boost YOUR_VERSION EXACT) Problem is boost has very complicated linking scenario. Using FindBoost and linking to it hardcodes the versions, because they are in the filenames! If I need to run on another system I must have exactly the same boost version, but that is almost never the case.
>>>> INSTALL(DIRECTORY ${BOOST_RUNTIME_DIR}/ DESTINATION >>>> ${CMAKE_INSTALL_PREFIX}/bin FILES_MATCHING .......) >>>> > > I tried > > file(GLOB BOOSTLIBS /usr/lib/libboost*.so.*) > INSTALL(FILES ${BOOSTLIBS} DESTINATION ${CMAKE_INSTALL_PREFIX}/bin) The problem here is that FILE() only runs at configure time, while INSTALL on building the install target. We can not accept that on other reasons, we need to have the full installation in one go. So I conclude it is not possible. Many thanks for your response. Dominik _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake