summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-08-18 13:49:25 (GMT)
committerBrad King <brad.king@kitware.com>2023-08-18 13:49:25 (GMT)
commite4fe26201fd32bcb5dc7db203f1141e5c1aeb019 (patch)
tree183601c15392cd3894382c4cba1c839019715175 /Modules
parenta69c783749f769f41875ff818c68ead277fd24f9 (diff)
downloadCMake-e4fe26201fd32bcb5dc7db203f1141e5c1aeb019.zip
CMake-e4fe26201fd32bcb5dc7db203f1141e5c1aeb019.tar.gz
CMake-e4fe26201fd32bcb5dc7db203f1141e5c1aeb019.tar.bz2
VS: Remove duplicate import in compiler id vcxproj
Since commit d3c4c6d630 (VS: Import default C++ props file before toolset-specific props file, 2023-03-01, v3.27.0-rc1~361^2) we import `Microsoft.Cpp.Default.props` twice. Remove the extra import line, and re-order imports as intended by the original change.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/CMakeDetermineCompilerId.cmake3
-rw-r--r--Modules/CompilerId/VS-10.vcxproj.in2
2 files changed, 1 insertions, 4 deletions
diff --git a/Modules/CMakeDetermineCompilerId.cmake b/Modules/CMakeDetermineCompilerId.cmake
index 6c49096..2cf9853 100644
--- a/Modules/CMakeDetermineCompilerId.cmake
+++ b/Modules/CMakeDetermineCompilerId.cmake
@@ -402,9 +402,6 @@ Id flags: ${testflags} ${CMAKE_${lang}_COMPILER_ID_FLAGS_ALWAYS}
endif()
endif()
set(id_toolset_version_props "<Import Project=\"${CMAKE_GENERATOR_INSTANCE}\\VC\\Auxiliary\\Build${id_sep}${CMAKE_VS_PLATFORM_TOOLSET_VERSION}\\Microsoft.VCToolsVersion.${CMAKE_VS_PLATFORM_TOOLSET_VERSION}.props\" />")
- if(lang STREQUAL CXX OR lang STREQUAL C)
- set(id_toolset_version_props "<Import Project=\"$(VCTargetsPath)\\Microsoft.Cpp.Default.props\" />${id_toolset_version_props}")
- endif()
unset(id_sep)
endif()
endif()
diff --git a/Modules/CompilerId/VS-10.vcxproj.in b/Modules/CompilerId/VS-10.vcxproj.in
index fa324d8..adb9d49 100644
--- a/Modules/CompilerId/VS-10.vcxproj.in
+++ b/Modules/CompilerId/VS-10.vcxproj.in
@@ -18,8 +18,8 @@
@id_ToolsetVCTargetsDir@
@id_CustomGlobals@
</PropertyGroup>
- @id_toolset_version_props@
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
+ @id_toolset_version_props@
<PropertyGroup>
@id_PreferredToolArchitecture@
</PropertyGroup>