Boost logo

Boost :

From: Doug Gregor (dgregor_at_[hidden])
Date: 2007-08-14 13:32:30


On Aug 14, 2007, at 12:03 PM, Larry Evans wrote:

> On 08/14/2007 08:02 AM, Douglas Gregor wrote:
> [snip]
>> top-level CMakeLists.txt. But, I would recommend not starting there:
>> documentation for the CMake-based build system is on the Trac at
>>
>> http://svn.boost.org/trac/boost/wiki/CMake
>>
> Thanks. That's much better; however, I got an error:
>
> cd ~/prog_dev/boost-svn/ro/sandbox-branches/boost-cmake/build/
> cmake ../src
> -- Check for working C compiler: /usr/bin/gcc
> -- Check for working C compiler: /usr/bin/gcc -- works
> -- Check size of void*
> -- Check size of void* - done
> -- Check for working CXX compiler: CMAKE_CXX_COMPILER-NOTFOUND
> CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not
> found. Please set CMAKE_CXX_COMPILER to a valid compiler path or
> name.

You don't have a C++ compiler in your path? Interesting.

> So, I edited the build/CMakeCache.txt:
>
> //CXX compiler.
> CMAKE_CXX_COMPILER:FILEPATH=/usr/bin/g++-4.1
>
> and the above command worked. Should the wiki/CMake mention the
> need to edit this CMakeCache.txt file or maybe some other file?

Or we could mention "ccmake".

        - Doug


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk