Changes between Version 1 and Version 2 of CMakeAddLibrary
- Timestamp:
- Jun 12, 2007, 2:55:34 AM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
CMakeAddLibrary
v1 v2 124 124 125 125 == Example == 126 The 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. 126 127 127 128 {{{ … … 136 137 ) 137 138 }}} 139 140 This 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 == 143 This 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]