Changes between Version 4 and Version 5 of CMakeConfigAndBuild
- Timestamp:
- Jun 12, 2007, 5:31:07 PM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
CMakeConfigAndBuild
v4 v5 9 9 }}} 10 10 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. 12 12 13 13 * 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, … … 38 38 cmake $BOOST/src 39 39 }}} 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 68 CMakeCache.txt CPackConfig.cmake Makefile 69 cmake_install.cmake libs/ CMakeFiles/ 70 CPackSourceConfig.cmake bin/ lib/ 71 }}} 40 72 41 73 That's it! You've now configured your source tree and are ready to start building Boost. … … 43 75 * 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. 44 76 * '''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, thanrun `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`: 46 78 {{{ 47 79 make