mirror of
https://github.com/Kitware/CMake.git
synced 2026-11-06 05:16:58 +00:00
IntelLLVM links through the compiler driver, so its link directory flag is wrapped in `/Qoption,link,`. MSVC and CUDA run `link.exe` directly. When both are used in one build tree, the IntelLLVM value of `CMAKE_LIBRARY_PATH_FLAG` leaked onto `link.exe` command lines. Setting `CMAKE_<LANG>_LIBRARY_PATH_FLAG` per language, as was done for `CMAKE_<LANG>_LINK_DEF_FILE_FLAG`, gives each link line the spelling its own linker understands. The variable is now documented. Fixes: #28116