CMAKE_STATIC_LINKER_FLAGS

From Get docs
Cmake/docs/3.21/variable/cmake static linker flags


CMAKE_STATIC_LINKER_FLAGS

Flags to be used to create static libraries. These flags will be passed to the archiver when creating a static library.

See also CMAKE_STATIC_LINKER_FLAGS_.

Note

Static libraries do not actually link. They are essentially archives of object files. The use of the name "linker" in the name of this variable is kept for compatibility.


© 2000–2021 Kitware, Inc. and Contributors
Licensed under the BSD 3-clause License.
https://cmake.org/cmake/help/v3.21/variable/CMAKE_STATIC_LINKER_FLAGS.html