Changes between Version 1 and Version 2 of CMakeAddLibrary


Ignore:
Timestamp:
Jun 12, 2007, 2:55:34 AM (15 years ago)
Author:
Douglas Gregor
Comment:

Finish documentation for boost_add_library

Legend:

Unmodified
Added
Removed
Modified
  • CMakeAddLibrary

    v1 v2  
    124124
    125125== Example ==
     126The Boost.Thread library binary is built using the following invocation of the `boost_add_library` macro. The options passed to the macro indicate that CMake should define `BOOST_THREAD_BUILD_DLL` to 1 when building shared libraries and `BOOST_THREAD_BUILD_LIB` to 1 when building static libraries. The `NO_SINGLE_THREADED` option inhibits creation of any single-threaded variants of the library (which obviously would not make sense for a threading library!). The flags needed to compile the multi-threaded variants are automatically added.
    126127
    127128{{{
     
    136137)
    137138}}}
     139
     140This example is from [http://svn.boost.org/svn/boost/sandbox-branches/boost-cmake/boost_1_34_0/libs/thread/src/CMakeLists.txt libs/thread/src/CMakeLists.txt].
     141
     142== Where Defined ==
     143This macro is defined in the Boost Core module in [http://svn.boost.org/svn/boost/sandbox-branches/boost-cmake/boost_1_34_0/tools/build/CMake/BoostCore.cmake tools/build/CMake/BoostCore.cmake]