cmake/Help/envvar/LDFLAGS.rst

13 lines
498 B
ReStructuredText
Raw Normal View History

2018-01-26 17:06:56 +01:00
LDFLAGS
-------
2019-11-11 23:01:05 +01:00
.. include:: ENV_VAR.txt
2018-01-26 17:06:56 +01:00
Will only be used by CMake on the first configuration to determine the default
linker flags, after which the value for ``LDFLAGS`` is stored in the cache
as :variable:`CMAKE_EXE_LINKER_FLAGS_INIT`,
:variable:`CMAKE_SHARED_LINKER_FLAGS_INIT`, and
:variable:`CMAKE_MODULE_LINKER_FLAGS_INIT`. For any configuration run
(including the first), the environment variable will be ignored if the
equivalent ``CMAKE_<TYPE>_LINKER_FLAGS_INIT`` variable is defined.