Changes between Version 17 and Version 18 of CMakeConfigAndBuild
- Timestamp:
- May 11, 2009, 1:50:51 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
CMakeConfigAndBuild
v17 v18 12 12 Note that it is '''not''' actually necessary to set any environment variable `BOOST`, this is a convention used in this document. 13 13 14 == Check out Boost-CMake ==15 To get a copy of Boost with the CMake build system, retrieve it from the [wiki:BoostSubversion Boost Subversion repository] with the URL http://svn.boost.org/svn/boost/ trunk].14 == Check out the code == 15 To get a copy of Boost with the CMake build system, retrieve it from the [wiki:BoostSubversion Boost Subversion repository] with the URL http://svn.boost.org/svn/boost/branches/release]. 16 16 17 17 On unix: 18 18 {{{ 19 19 mkdir $BOOST 20 svn co http://svn.boost.org/svn/boost/ trunk$BOOST/src20 svn co http://svn.boost.org/svn/boost/branches/release $BOOST/src 21 21 }}} 22 22 23 23 === Boost Trunk === 24 CMake files are now in the trunk to develop. 25 26 === Boost 1.35.0 === 27 28 TDS 2008/05/18: 29 30 We're working on retrofitting this release with cmakefiles: The URL is 31 {{{ 32 http://svn.boost.org/svn/boost/branches/CMake/Boost_1_35_0 33 }}} 34 the rest of the instructions are identical. 24 The trunk is lagging behind the release (as we iterate towards the release of 1.40). If you want to play with cmake, use the release branch. 35 25 36 26 == Configure the Boost source tree == 37 To discourage the casual developer from trying the CMake build system before it is fully developed a "kill switch" has been added to the CMake file that needs to be turned off or the CMake build system will simply NOT work. In the top most CMakeLists.txt file ($BOOST/src/boost/CMakeLists.txt) you need to comment out the line38 message(FATAL_ERROR "")39 then follow the remaining instructions.40 27 41 28 This is the makefile generation step, using `CMake`'s configuration tool. This step differs depending on whether you are using CMake's GUI on Microsoft Windows or whether you are using the command-line tools provided on Unix. … … 101 88 === Microsoft Visual Studio === 102 89 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 build directory you set in the CMake configuration earlier. Then, just click "Build" to build all of Boost. 90 103 91 === On Unix (and when using makefile variants on Microsoft Windows) === 104 105 The first thing to run is the "modularize" target.106 {{{107 make modularize108 }}}109 110 This will MOVE most of the headers and subdirectories from the $BOOST/src/boost/boost into $BOOST/src/boost/libs. This WILL in effect DISABLE the bjam build system until you 'revert' your svn repository.111 112 The next step is to run the actual build.113 92 114 93 One builds using standard "make" tools. In the directory $BOOST/build (where the generated makefiles are) run `make`: