https://github.com/Kitware/CMake
Raw File
Tip revision: 454bfa77b2951cc53296da86928dce00885d4d5b authored by Brad King on 08 March 2023, 19:04:09 UTC
CMake 3.26.0-rc6
Tip revision: 454bfa7
BUILD_SHARED_LIBS.rst
BUILD_SHARED_LIBS
-----------------

Global flag to cause :command:`add_library` to create shared libraries if on.

If present and true, this will cause all libraries to be built shared
unless the library was explicitly added as a static library.  This
variable is often added to projects as an :command:`option` so that each user
of a project can decide if they want to build the project using shared or
static libraries.
back to top