Changes between Version 3 and Version 4 of CMakeAddingCompiledLibrary


Ignore:
Timestamp:
Jun 12, 2007, 4:58:38 AM (15 years ago)
Author:
Douglas Gregor
Comment:

Mention BUILD_LIBNAME

Legend:

Unmodified
Added
Removed
Modified
  • CMakeAddingCompiledLibrary

    v3 v4  
    1313  This invocation will build several variants of the `boost_libname` library from the source files `mysrc1.cpp` and `mysrc2.cpp`. For example, it will build both static and shared library, single- and multi-threaded, debug and release, etc. This invocation also handles the installation of these libraries.
    1414
    15   2. For simple libraries, that's it! Rebuilding via CMake (e.g., running `make` or reloading and rebuilding the Boost project in your IDE) will build the new library, including several different variants for different compilation options. Your Boost library will also be included when the user installs Boost or builds a binary package of Boost.
     15  2. For simple libraries, that's it! Rebuilding via CMake (e.g., running `make` or reloading and rebuilding the Boost project in your IDE) will build the new library, including several different variants for different compilation options. Your Boost library will also be included when the user installs Boost or builds a binary package of Boost. Within the CMake configuration, you will also see an option `BUILD_LIBNAME`, which allows the user to decide whether or not to build this Boost library.
    1616
    1717  3. Many libraries will need specific compilation options when building, need to link against other libraries (Boost or otherwise), or rely on certain features of the compilation process to proceed. Follow the instructions in the remaining part of this page to address these library-specific needs.