[CMake] Problem with Linking CXX shared module
Marcel Loose
loose at astron.nl
Thu May 28 03:49:00 EDT 2009
I disagree,
Quoting from the book "Mastering CMake: A Cross-Platform Build System",
section 7.4 on page 115:
find_package(OpenGL)
is equivalent to
include(${CMAKE_ROOT}/Modules/FindOpenGL.cmake)
and
include(FindOpenGL)
However, find_package() offers a means to specify components, which
you'll definitely need when using FindBoost. Otherwise, as Andreas
noted, it will not search for any Boost libraries. So, in general,
you're better of using find_package().
Best regards,
Marcel Loose.
-----Original Message-----
From: Andreas Pakulat <apaku at gmx.de>
To: cmake at cmake.org
Subject: Re: [CMake] Problem with Linking CXX shared module
Date: Thu, 28 May 2009 09:37:17 +0200
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
More information about the CMake
mailing list