[CMake] Building and Linking Errors with Boost using CMake

Andreas Pakulat apaku at gmx.de
Sat Jun 21 03:19:19 EDT 2008


On 20.06.08 19:30:45, Chirag Dekate wrote:
> project (hpx)
> 
> find_package(Boost 1.35.0 REQUIRED)
[...] 
> add_library (hpx STATIC ${hpxlib_SOURCES} ${hpxlib_HEADERS}
> ${Boost_LIBRARIES})

Did you try printing out the value of Boost_LIBRARIES? It should be
empty, because you're not telling FindBoost.cmake which boost libraries
you want to link to. Check out the documentation in FindBoost.cmake, it
tells you how to name the libraries.

Andreas

-- 
Don't kiss an elephant on the lips today.


More information about the CMake mailing list