aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiguel Costa <miguel.costa@qt.io>2024-01-03 11:04:11 +0100
committerMiguel Costa <miguel.costa@qt.io>2024-01-09 15:18:13 +0000
commitd7635dbc90d2c6e19e7c5209b8a2faae91788a3c (patch)
tree4f98c66046a499442770f6bc1d13c75fccaf51b5
parent79c9298ed470d96dbb69a2803c38d09a399acb7f (diff)
Fix Intellisense errors if vstools not installed
Opening the vstools solution in a VS instance which does not have an installed version of the extension would generate errors in the Intellisense build for the SampleTest project. (Even though this project is disabled in all configs, Intellisense still tries to build it.) Change-Id: Ib0e0c9fe86af6792a632b6e925924e9c5fc01cac Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
-rw-r--r--Tests/SampleTest/SampleTest.vcxproj5
1 files changed, 3 insertions, 2 deletions
diff --git a/Tests/SampleTest/SampleTest.vcxproj b/Tests/SampleTest/SampleTest.vcxproj
index 4cd1adc2..57983364 100644
--- a/Tests/SampleTest/SampleTest.vcxproj
+++ b/Tests/SampleTest/SampleTest.vcxproj
@@ -54,6 +54,7 @@
<ImportGroup Condition="Exists('$(QtMsBuild)\qt_defaults.props')">
<Import Project="$(QtMsBuild)\qt_defaults.props" />
</ImportGroup>
+ <Import Project="$(SolutionDir)\QtCppConfig.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<IncludePath>$(LOCALAPPDATA)\qtvstest;$(IncludePath)</IncludePath>
</PropertyGroup>
@@ -61,11 +62,11 @@
<IncludePath>$(LOCALAPPDATA)\qtvstest;$(IncludePath)</IncludePath>
</PropertyGroup>
<PropertyGroup Label="QtSettings" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
- <QtInstall>$(DefaultQtVersion)</QtInstall>
+ <QtInstall>$(QtBuild)</QtInstall>
<QtModules>core;network;testlib</QtModules>
</PropertyGroup>
<PropertyGroup Label="QtSettings" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
- <QtInstall>$(DefaultQtVersion)</QtInstall>
+ <QtInstall>$(QtBuild)</QtInstall>
<QtModules>core;network;testlib</QtModules>
</PropertyGroup>
<ImportGroup Condition="Exists('$(QtMsBuild)\qt.props')">