diff options
author | Brad King <brad.king@kitware.com> | 2023-05-25 15:59:26 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-05-25 17:42:58 (GMT) |
commit | 023de565d33cdb095c0d5665e408493087e4d458 (patch) | |
tree | 8f52e06801201ec59cb11dab088dbd9a289f1be2 /Help/envvar | |
parent | cf7b7600c669ea162e0c3960c3e4e3a5d04f3274 (diff) | |
download | CMake-023de565d33cdb095c0d5665e408493087e4d458.zip CMake-023de565d33cdb095c0d5665e408493087e4d458.tar.gz CMake-023de565d33cdb095c0d5665e408493087e4d458.tar.bz2 |
Optionally exclude implicit link directories via environment
A misconfigured compiler may pass extraneous implicit link directories
to its linker. If they are in `CMAKE_<LANG>_IMPLICIT_LINK_DIRECTORIES`,
CMake may generate extra `-L` flags on mixed-language link lines that
break linking. Add an environment variable that users can set to work
around such misconfiguration of their compilers.
Diffstat (limited to 'Help/envvar')
-rw-r--r-- | Help/envvar/CMAKE_LANG_IMPLICIT_LINK_DIRECTORIES_EXCLUDE.rst | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Help/envvar/CMAKE_LANG_IMPLICIT_LINK_DIRECTORIES_EXCLUDE.rst b/Help/envvar/CMAKE_LANG_IMPLICIT_LINK_DIRECTORIES_EXCLUDE.rst new file mode 100644 index 0000000..36c79fa --- /dev/null +++ b/Help/envvar/CMAKE_LANG_IMPLICIT_LINK_DIRECTORIES_EXCLUDE.rst @@ -0,0 +1,13 @@ +CMAKE_<LANG>_IMPLICIT_LINK_DIRECTORIES_EXCLUDE +---------------------------------------------- + +.. versionadded:: 3.27 + +.. include:: ENV_VAR.txt + +A :ref:`semicolon-separated list <CMake Language Lists>` of directories +to exclude from the :variable:`CMAKE_<LANG>_IMPLICIT_LINK_DIRECTORIES` +variable when it is automatically detected from the ``<LANG>`` compiler. + +This may be used to work around misconfigured compiler drivers that pass +extraneous implicit link directories to their linker. |