Re: [CMake] CMakeFindDependencyMacro and components

2015-07-23 Thread Ruslan Baratov via CMake
On 23-Jul-15 18:08, Guillaume Dumont wrote: include(CMakeFindDependencyMacro) find_dependency(Boost COMPONENTS date_time filesystem system) Note that by default Boost_LIBRARIES is a list of full paths to the components, so find_dependency not needed since library will be hardcoded into *Target

Re: [CMake] CMakeFindDependencyMacro and components

2015-07-23 Thread Guillaume Dumont
According to documentation: http://www.cmake.org/cmake/help/v3.2/module/CMakeFindDependencyMacro.html find_dependency() wraps a find_package() call for a package dependency. It is designed to be used in a Config

Re: [CMake] CMakeFindDependencyMacro and components

2015-07-23 Thread Daniel S. Reichenbach
Hi, find_dependency(Boost COMPONENTS date_time filesystem system) Looking at the CMakeFindDependencyMacro code the COMPONENTS argument does not seem to be supported. Is there a workaround for this situation? What about using e.g. set(BOOST_ROOT $ENV{BOOST_ROOT}) find_package(Boost 1.54 REQUI