[CMake] Problem with Linking CXX shared module

Andreas Pakulat apaku at gmx.de
Thu May 28 03:37:17 EDT 2009


On 28.05.09 11:27:45, nazia zaman wrote:
 
> # Find library locations using convenient cmake search functions
> include (FindBoost)
> include (FindPythonLibs)

This is wrong, these modules shouldn't be include()'ed. You need to use
find_package(Boost) and find_package(PythonLibs). See also the cmake
manual. Additionally you need to supply the components for Boost that
you later want to link against (i.e. the boost libraries) as explained
in the cmake manual. Else Boost_LIBRARIES will be empty.

Andreas

-- 
You will be married within a year, and divorced within two.


More information about the CMake mailing list