summaryrefslogtreecommitdiffstats
path: root/Modules/Platform/Windows-MSVC.cmake
diff options
context:
space:
mode:
authorThomas Bernard <tbernard@go-engineering.de>2020-08-20 21:43:35 (GMT)
committerBrad King <brad.king@kitware.com>2020-09-11 13:05:03 (GMT)
commitcf83758b24e3f27bcc2a1e4daba9ca58ac22fa9b (patch)
tree042aebd5995755b67517a61fea34b16e60f86728 /Modules/Platform/Windows-MSVC.cmake
parent60b10d4fad26c0cd877d06ebcca9f5f583d1275d (diff)
downloadCMake-cf83758b24e3f27bcc2a1e4daba9ca58ac22fa9b.zip
CMake-cf83758b24e3f27bcc2a1e4daba9ca58ac22fa9b.tar.gz
CMake-cf83758b24e3f27bcc2a1e4daba9ca58ac22fa9b.tar.bz2
Clang: Implement CMAKE_${LANG}_COMPILER_TARGET for all variants on windows
Fixes: #21097
Diffstat (limited to 'Modules/Platform/Windows-MSVC.cmake')
-rw-r--r--Modules/Platform/Windows-MSVC.cmake5
1 files changed, 0 insertions, 5 deletions
diff --git a/Modules/Platform/Windows-MSVC.cmake b/Modules/Platform/Windows-MSVC.cmake
index de31dab..bd08718 100644
--- a/Modules/Platform/Windows-MSVC.cmake
+++ b/Modules/Platform/Windows-MSVC.cmake
@@ -364,11 +364,6 @@ macro(__windows_compiler_msvc lang)
set(_CMAKE_${lang}_IPO_SUPPORTED_BY_CMAKE YES)
set(_CMAKE_${lang}_IPO_MAY_BE_SUPPORTED_BY_COMPILER YES)
- if(CMAKE_${lang}_COMPILER_VERSION VERSION_LESS 3.4.0)
- set(CMAKE_${lang}_COMPILE_OPTIONS_TARGET "-target ")
- else()
- set(CMAKE_${lang}_COMPILE_OPTIONS_TARGET "--target=")
- endif()
# '-flto=thin' available since Clang 3.9 and Xcode 8
# * http://clang.llvm.org/docs/ThinLTO.html#clang-llvm
# * https://trac.macports.org/wiki/XcodeVersionInfo