CMAKE__STANDARD_LIBRARIES

From Get docs
Cmake/docs/3.21/variable/cmake lang standard libraries


CMAKE__STANDARD_LIBRARIES

New in version 3.6.


Libraries linked into every executable and shared library linked for language <LANG>. This is meant for specification of system libraries needed by the language for the current platform.

This variable should not be set by project code. It is meant to be set by CMake's platform information modules for the current toolchain, or by a toolchain file when used with CMAKE_TOOLCHAIN_FILE.

See also CMAKE__STANDARD_INCLUDE_DIRECTORIES.

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