From e4fe26201fd32bcb5dc7db203f1141e5c1aeb019 Mon Sep 17 00:00:00 2001 From: Brad King Date: Fri, 18 Aug 2023 09:49:25 -0400 Subject: 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. --- Modules/CMakeDetermineCompilerId.cmake | 3 --- Modules/CompilerId/VS-10.vcxproj.in | 2 +- 2 files changed, 1 insertion(+), 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 "") - if(lang STREQUAL CXX OR lang STREQUAL C) - set(id_toolset_version_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@ - @id_toolset_version_props@ + @id_toolset_version_props@ @id_PreferredToolArchitecture@ -- cgit v0.12