summaryrefslogtreecommitdiffstats
path: root/Modules/Platform/Windows-Clang.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-12-01 14:26:36 (GMT)
committerKitware Robot <kwrobot@kitware.com>2020-12-01 14:32:08 (GMT)
commit644f190abb2d579e451a673c46de7c13aabe2171 (patch)
tree8d5b437d08a8954071b07fde7c0b455ca5448eda /Modules/Platform/Windows-Clang.cmake
parentee4310c3d9a5a0fb1b99341e50759645f1b83812 (diff)
parent9ac98767576e459060a8c9b8e0aa97aa14f7380c (diff)
downloadCMake-644f190abb2d579e451a673c46de7c13aabe2171.zip
CMake-644f190abb2d579e451a673c46de7c13aabe2171.tar.gz
CMake-644f190abb2d579e451a673c46de7c13aabe2171.tar.bz2
Merge topic 'windows-clang-LINKER-prefix'
9ac9876757 Clang on Windows: 'LINKER:' prefix must be honored Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5551
Diffstat (limited to 'Modules/Platform/Windows-Clang.cmake')
-rw-r--r--Modules/Platform/Windows-Clang.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/Platform/Windows-Clang.cmake b/Modules/Platform/Windows-Clang.cmake
index d10ea8f..2c6ee19 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()