diff options
author | Michael Karcher <kitware@mkarcher.dialup.fu-berlin.de> | 2023-04-21 11:27:09 +0200 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-04-25 13:46:10 -0400 |
commit | 5d5b6c741da414d7d62ac9681604cc95a1275c51 (patch) | |
tree | 50a60fc90bffa11c7cdbe4f7fcf137df7e7c5573 /Modules | |
parent | e78abf94e325502da7ed4c09e9176de5ad700d4a (diff) | |
download | cmake-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.in | 2 |
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> |