summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalVisualStudio10Generator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-08-03 15:52:14 (GMT)
committerBrad King <brad.king@kitware.com>2017-08-03 15:54:02 (GMT)
commitfe3b481babc01442428934af892166bd114ee7b0 (patch)
tree005e42438307c21e2a3836911813428c5125a20a /Source/cmGlobalVisualStudio10Generator.cxx
parentf15cfd891d1e01247ed285320ae32b6c3182ac8f (diff)
downloadCMake-fe3b481babc01442428934af892166bd114ee7b0.zip
CMake-fe3b481babc01442428934af892166bd114ee7b0.tar.gz
CMake-fe3b481babc01442428934af892166bd114ee7b0.tar.bz2
VS: Fix VCTargetsPath detection
In some environments MSBuild chooses the `Release` configuration even though only `Debug` is available in our detection project. Force use of the `Debug` configuration with a command-line option. Fixes: #17118
Diffstat (limited to 'Source/cmGlobalVisualStudio10Generator.cxx')
-rw-r--r--Source/cmGlobalVisualStudio10Generator.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmGlobalVisualStudio10Generator.cxx b/Source/cmGlobalVisualStudio10Generator.cxx
index e3835ff..4fff11a 100644
--- a/Source/cmGlobalVisualStudio10Generator.cxx
+++ b/Source/cmGlobalVisualStudio10Generator.cxx
@@ -757,6 +757,7 @@ bool cmGlobalVisualStudio10Generator::FindVCTargetsPath(cmMakefile* mf)
std::vector<std::string> cmd;
cmd.push_back(this->GetMSBuildCommand());
cmd.push_back(vcxproj);
+ cmd.push_back("/p:Configuration=Debug");
cmd.push_back(std::string("/p:VisualStudioVersion=") +
this->GetIDEVersion());
std::string out;