diff options
author | Brad King <brad.king@kitware.com> | 2020-12-01 14:26:36 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2020-12-01 14:32:07 (GMT) |
commit | f264f1d783d57c70a0864768b6b1aa44fc94194a (patch) | |
tree | 8a42a90b155d782ba5ea25b327ecc6df80b64a8d /Modules | |
parent | b76013b515df0216afd74456dfd0fb48ff9e68fe (diff) | |
parent | 9ac98767576e459060a8c9b8e0aa97aa14f7380c (diff) | |
download | CMake-f264f1d783d57c70a0864768b6b1aa44fc94194a.zip CMake-f264f1d783d57c70a0864768b6b1aa44fc94194a.tar.gz CMake-f264f1d783d57c70a0864768b6b1aa44fc94194a.tar.bz2 |
Merge topic 'windows-clang-LINKER-prefix' into release-3.19
9ac9876757 Clang on Windows: 'LINKER:' prefix must be honored
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !5551
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/Platform/Windows-Clang.cmake | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/Platform/Windows-Clang.cmake b/Modules/Platform/Windows-Clang.cmake index 2261c90..f90c36a 100644 --- a/Modules/Platform/Windows-Clang.cmake +++ b/Modules/Platform/Windows-Clang.cmake @@ -35,6 +35,9 @@ macro(__windows_compiler_clang_gnu lang) set(CMAKE_SUPPORT_WINDOWS_EXPORT_ALL_SYMBOLS 1) set (CMAKE_LINK_DEF_FILE_FLAG "-Xlinker /DEF:") + set(CMAKE_${lang}_LINKER_WRAPPER_FLAG "-Xlinker" " ") + set(CMAKE_${lang}_LINKER_WRAPPER_FLAG_SEP) + if("${CMAKE_${lang}_SIMULATE_VERSION}" MATCHES "^([0-9]+)\\.([0-9]+)") math(EXPR MSVC_VERSION "${CMAKE_MATCH_1}*100 + ${CMAKE_MATCH_2}") endif() |