Changes between Version 4 and Version 5 of CMakeConfigAndBuild


Ignore:
Timestamp:
Jun 12, 2007, 5:31:07 PM (15 years ago)
Author:
troy d. straszheim
Comment:

include a bit more output from the cmake phase, move 'ccmake' business to a separate section on tuning the cmake build (to come)

Legend:

Unmodified
Added
Removed
Modified
  • CMakeConfigAndBuild

    v4 v5  
    99}}}
    1010
    11   Note that it is '''not''' actually necessary to set any environment variable `BOOST`.
     11  Note that it is '''not''' actually necessary to set any environment variable `BOOST`, this is a convention used in this document.
    1212 
    1313  * Download Boost with CMake: At present, the CMake build system is developed externally from Boost itself. To get a copy of Boost 1.34.0 with the CMake build system, retrieve it from the [wiki:BoostSubversion  Boost Subversion repository] with the URL http://svn.boost.org/svn/boost/sandbox-branches/boost-cmake/boost_1_34_0].  So,
     
    3838cmake $BOOST/src
    3939      }}}
     40      You'll see output from `cmake`.  On unix it looks like this:
     41      {{{
     42% cmake $BOOST/src
     43-- Check for working C compiler: /usr/bin/gcc
     44-- Check for working C compiler: /usr/bin/gcc -- works
     45-- Check size of void*
     46-- Check size of void* - done
     47-- Check for working CXX compiler: /usr/bin/c++
     48-- Check for working CXX compiler: /usr/bin/c++ -- works
     49-- Scanning subdirectories:
     50--  + io
     51--  + any
     52--  + crc
     53--  + mpl
     54--  + tr1
     55--  + bind
     56  [snip]
     57--  + program_options
     58--  + ptr_container
     59--  + type_traits
     60-- Configuring done
     61-- Generating done
     62-- Build files have been written to: $BOOST/build
     63}}}
     64
     65      The directory `$BOOST/build` should now contain a bunch of generated files, including a toplevel `Makefile`, something like this:
     66      {{{
     67 % ls
     68CMakeCache.txt           CPackConfig.cmake    Makefile 
     69cmake_install.cmake      libs/                CMakeFiles/     
     70CPackSourceConfig.cmake  bin/                 lib/
     71}}}
    4072
    4173  That's it! You've now configured your source tree and are ready to start building Boost.
     
    4375  * Build Boost: Like configuration, the way in which one builds Boost with CMake differs from one platform to another, depending on your platform and how you configured CMake. Either way, you'll be using the tools provided to you by your compiler or operating system vendor.
    4476    * '''Microsoft Visual Studio''': If you have generated project files for Microsoft Visual Studio, you will need to start up Visual Studio to build Boost. Once Visual Studio has loaded, load the solution or project`Boost` from the Boost binary directory you set in the CMake configuration earlier. Then, just click "Build" to build all of Boost.
    45     * '''On Unix''' (and when using makefile variants on Microsoft Windows): If you are on Unix, you will build Boost using standard "make" tools. Change into the binary directory we created and configured earlier, than run `make`:
     77    * '''On Unix''' (and when using makefile variants on Microsoft Windows): If you are on Unix, you will build Boost using standard "make" tools. In the directory $BOOST/build (where the generated makefiles are) run `make`:
    4678       {{{
    4779make