[CMake] FindBoost: FIND_PACKAGE ( Boost COMPONENTS filesystem )

Mathieu Malaterre mathieu.malaterre at gmail.com
Mon Nov 2 09:45:35 EST 2009


Hi there,

  I am wondering if I am missing something. I'd like to write:

FIND_PACKAGE ( Boost COMPONENTS filesystem )

  However using a recent boost (1.40), it gives a linker error. So I
need to write something like:

FIND_PACKAGE ( Boost COMPONENTS filesystem system )

  but then it breaks compatibility with boost 1.34 (default package on
one of my ubuntu machine). What is the synthetic way for writing this
? I am linking to filesystem, I do not want to explicitely search for
an implementation detail.

Thanks,
-- 
Mathieu


More information about the CMake mailing list