summaryrefslogtreecommitdiff
path: root/Modules
diff options
context:
space:
mode:
authorMichael Karcher <kitware@mkarcher.dialup.fu-berlin.de>2023-04-21 11:27:09 +0200
committerBrad King <brad.king@kitware.com>2023-04-25 13:46:10 -0400
commit5d5b6c741da414d7d62ac9681604cc95a1275c51 (patch)
tree50a60fc90bffa11c7cdbe4f7fcf137df7e7c5573 /Modules
parente78abf94e325502da7ed4c09e9176de5ad700d4a (diff)
downloadcmake-5d5b6c741da414d7d62ac9681604cc95a1275c51.tar.gz
VS/Android: Do not specify Windows Runtime library type during compiler id
The VS2022 Clang toolchain adds some windows libraries to the linked library list if RuntimeLibrary is set, even if the Project is targeting Android. This causes an unexpected linker failure.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/CompilerId/VS-10.vcxproj.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/CompilerId/VS-10.vcxproj.in b/Modules/CompilerId/VS-10.vcxproj.in
index 3598fc7e20..9bd618c95a 100644
--- a/Modules/CompilerId/VS-10.vcxproj.in
+++ b/Modules/CompilerId/VS-10.vcxproj.in
@@ -44,7 +44,7 @@
<PreprocessorDefinitions>%(PreprocessorDefinitions)</PreprocessorDefinitions>
<MinimalRebuild>false</MinimalRebuild>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
+ <RuntimeLibrary Condition="'$(ApplicationType)'!='Android'">MultiThreadedDebugDLL</RuntimeLibrary>
<PrecompiledHeader>
</PrecompiledHeader>
<WarningLevel>TurnOffAllWarnings</WarningLevel>