[CMake] Difficulties with component search by "FindBoost"
Mateusz Loskot
mateusz at loskot.net
Mon Sep 30 07:08:03 EDT 2013
On 30 September 2013 12:00, SF Markus Elfring
<elfring at users.sourceforge.net> wrote:
> Hello,
>
> I try to use a macro call like "find_package(Boost 1.49 REQUIRED COMPONENTS
> spirit)".
Boost.Spirit is headers-only library, so there is no binary library supplied.
It might be not obvious from the manual [1], but COMPONENTS is dedicated
to request lookup for the Boost libraries which are built as binary components.
For the Spirit, you just need to check if you have Boost headers available:
find_package(Boost 1.49 REQUIRED)
[1] http://cmake.org/cmake/help/v2.8.11/cmake.html#module:FindBoost
Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
"Participation in this whole process is a form of torture" ~~ Szalony
More information about the CMake
mailing list