Thanks to David & Daniel for the replies, but I was
already doing everything by the book, so their replies
didn't help. It seems to be a bug, or flaky feature, in boost; I had
to disable "auto-linking". Here's the final, working CMakeLists.txt:
cmake_minimum_required(VERSION 2.8)
# Turn off boos
On Sun, Oct 30, 2011 at 5:46 AM, Daniel Dekkers wrote:
> find_package() searches for a package, and sets variables. Typically
> variables like...
>
> _FOUND # package found or not
> _INCLUDE_DIR # path to the libraries include directory
> _LIBRARY # name of the library
>
> You still have to link
find_package() searches for a package, and sets variables. Typically variables
like...
_FOUND # package found or not
_INCLUDE_DIR # path to the libraries include directory
_LIBRARY # name of the library
You still have to link in the library yourself:
target_link_libraries(${TARGET} ${_LIBRARY})
I'm slowly learning cmake and converting some real software to it,
targeting Linux, Windows, and Mac OS X.
Along the way, I'm making minimal working examples (they're a lot
easier to debug them than the real thing) and putting them up at
http://code.google.com/p/winezeug/source/browse/#svn/trunk/cm
On 23.06.09 16:51:05, Michael Jackson wrote:
> Boost uses the following version scheme:
>
> If the sub minor version is "0" then leave it off all versions. If the
> subminor version is NOT zero then add it on. So for versions like 1.38.1
> FindBoost will work just fine. But for 1.38 (the current
On 23.06.09 16:23:21, Bill Hoffman wrote:
> Christopher Harvey wrote:
>> define BOOST_ROOT and point it at the root install location for boost. I
>> had the same problem, that fixed it. I only had to do that on windows.
>>
> There seems to be a bug in the FindBoost, BOOST_ROOT should not be
> req
John Drescher wrote:
On Tue, Jun 23, 2009 at 4:23 PM, Bill Hoffman wrote:
Christopher Harvey wrote:
define BOOST_ROOT and point it at the root install location for boost. I
had the same problem, that fixed it. I only had to do that on windows.
There seems to be a bug in the FindBoost, BOOST_R
On Jun 23, 2009, at 4:23 PM, Bill Hoffman wrote:
Christopher Harvey wrote:
define BOOST_ROOT and point it at the root install location for
boost. I
had the same problem, that fixed it. I only had to do that on
windows.
There seems to be a bug in the FindBoost, BOOST_ROOT should not be
req
Hi Bill,
Thanks, adding another line to _boost_LIBRARIES_SEARCH_DIRS without the
Boost_SUBMINOR_VERSION fixes the problem for me as well. I agree that this
is a special case for 0, though -- there is some question whether the line
without the subminor version should be appended to the list if the
On Tue, Jun 23, 2009 at 4:23 PM, Bill Hoffman wrote:
> Christopher Harvey wrote:
>>
>> define BOOST_ROOT and point it at the root install location for boost. I
>> had the same problem, that fixed it. I only had to do that on windows.
>>
> There seems to be a bug in the FindBoost, BOOST_ROOT should
On 23.06.09 16:17:21, Curtis Rueden wrote:
> > Also, Looking at the CMakeLists.txt file it seems you are trying to parse
> > the Boost_THREAD library variable for something? If you are trying to
> > differentiate between the Release and Debug versions there are the following
> > variables for each
Christopher Harvey wrote:
define BOOST_ROOT and point it at the root install location for boost. I
had the same problem, that fixed it. I only had to do that on windows.
There seems to be a bug in the FindBoost, BOOST_ROOT should not be
required. I got it to work by adding this:
SET(_boo
On Jun 23, 2009, at 4:17 PM, Curtis Rueden wrote:
Hi Mike,
I use the boost pre-compiled all the time and I don't have any of
these issues BUT I do set the BOOST_ROOT environment variable in "My
Computer->Advanced Settings" after I install which may be the
difference. I use threads, progr
>
> define BOOST_ROOT and point it at the root install location for boost. I
> had the same problem, that fixed it. I only had to do that on windows.
>
Thanks Christopher, but I am aware of that fix. Actually, that's what my
hack does -- it uses CMake to set BOOST_ROOT programmatically. What I'm
g
Hi Mike,
> I use the boost pre-compiled all the time and I don't have any of these
> issues BUT I do set the BOOST_ROOT environment variable in "My
> Computer->Advanced Settings" after I install which may be the difference. I
> use threads, program_options, testing, filesystem and system.
>
Yes,
define BOOST_ROOT and point it at the root install location for boost. I
had the same problem, that fixed it. I only had to do that on windows.
Curtis Rueden wrote:
> Hi everyone,
>
> I am using CMake to build some code cross-platform. This code requires
> Boost Thread to compile. I am having seve
I use the boost pre-compiled all the time and I don't have any of
these issues BUT I do set the BOOST_ROOT environment variable in "My
Computer->Advanced Settings" after I install which may be the
difference. I use threads, program_options, testing, filesystem and
system.
I did notice in
Hi Andreas,
Well, then most probably the layout of that binary installation differs
> from what the FindBoost.cmake file expects. So where is the boost thread
> library and how is it named?
The latest available version of Boost offered by BoostPro is v1.38. The
libraries are placed in:
C:\Pro
On 23.06.09 13:09:25, Curtis Rueden wrote:
> First, I installed Boost using BoostPro's precompiled binaries at
> http://www.boostpro.com/download.
>
> Then I tried the following CMakeLists.txt file:
>
> --
> # Simple CMake build file for testing FindBoost. Fails on Windows with
> # Boost
Hi everyone,
I am using CMake to build some code cross-platform. This code requires Boost
Thread to compile. I am having several problems with FindBoost on Windows.
First, I installed Boost using BoostPro's precompiled binaries at
http://www.boostpro.com/download.
Then I tried the following CMak
For some reason in Windows the default inclde library is called
Boost-1_36 not Boost_1_36. There have been several requests to fix
FindBoost to include this variant (search the buglist).
Andrew
2008/10/23 Emre Turkay <[EMAIL PROTECTED]>:
> Hi folks,
> I'm trying to compile boost with cmake and MS
http://public.kitware.com/Bug/view.php?id=7783
2008/10/23 Emre Turkay <[EMAIL PROTECTED]>
> Hi folks,
>
> I'm trying to compile boost with cmake and MS Visual Studio 2003 on
> Windows.
> However, when I run the cmake I get:
>
> CMake Error at C:/Program Files/CMake
> 2.6/share/cmake-2.6/Modules/F
Hi folks,
I'm trying to compile boost with cmake and MS Visual Studio 2003 on Windows.
However, when I run the cmake I get:
CMake Error at C:/Program Files/CMake
2.6/share/cmake-2.6/Modules/FindBoost.cmak
e:620 (message):
Unable to find the requested Boost libraries.
Boost version: 1.35.0
23 matches
Mail list logo