diff options
author | Marc Chevrier <marc.chevrier@gmail.com> | 2020-11-30 14:31:45 (GMT) |
---|---|---|
committer | Marc Chevrier <marc.chevrier@gmail.com> | 2020-11-30 14:31:45 (GMT) |
commit | 9ac98767576e459060a8c9b8e0aa97aa14f7380c (patch) | |
tree | 0da461253bd868a1bae3fc83aa3624c43c8090b4 | |
parent | 419ef63b7bbfbe993dad1dad7faa9e08567d3f3f (diff) | |
download | CMake-9ac98767576e459060a8c9b8e0aa97aa14f7380c.zip CMake-9ac98767576e459060a8c9b8e0aa97aa14f7380c.tar.gz CMake-9ac98767576e459060a8c9b8e0aa97aa14f7380c.tar.bz2 |
Clang on Windows: 'LINKER:' prefix must be honored
Fixes: #21094
-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() |