diff options
author | Michael Karcher <kitware@mkarcher.dialup.fu-berlin.de> | 2023-04-21 09:27:09 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-04-25 17:46:10 (GMT) |
commit | 5d5b6c741da414d7d62ac9681604cc95a1275c51 (patch) | |
tree | 50a60fc90bffa11c7cdbe4f7fcf137df7e7c5573 | |
parent | e78abf94e325502da7ed4c09e9176de5ad700d4a (diff) | |
download | CMake-5d5b6c741da414d7d62ac9681604cc95a1275c51.zip CMake-5d5b6c741da414d7d62ac9681604cc95a1275c51.tar.gz CMake-5d5b6c741da414d7d62ac9681604cc95a1275c51.tar.bz2 |
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.
-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 3598fc7..9bd618c 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> |