summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalVisualStudioGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-10-04 14:42:03 (GMT)
committerBrad King <brad.king@kitware.com>2019-10-17 18:03:54 (GMT)
commitbcaecf6bcddfaec2b586bff870650a4a66b0ccc3 (patch)
tree169673c1339b5114d623c23ee5d326fadc68985e /Source/cmGlobalVisualStudioGenerator.cxx
parent324988a6b101f29d148badc32b44964aedae1163 (diff)
downloadCMake-bcaecf6bcddfaec2b586bff870650a4a66b0ccc3.zip
CMake-bcaecf6bcddfaec2b586bff870650a4a66b0ccc3.tar.gz
CMake-bcaecf6bcddfaec2b586bff870650a4a66b0ccc3.tar.bz2
Teach check for single-language targets to consider all configurations
Diffstat (limited to 'Source/cmGlobalVisualStudioGenerator.cxx')
-rw-r--r--Source/cmGlobalVisualStudioGenerator.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/cmGlobalVisualStudioGenerator.cxx b/Source/cmGlobalVisualStudioGenerator.cxx
index ed0cba7..6569e5e 100644
--- a/Source/cmGlobalVisualStudioGenerator.cxx
+++ b/Source/cmGlobalVisualStudioGenerator.cxx
@@ -810,8 +810,7 @@ bool cmGlobalVisualStudioGenerator::TargetIsFortranOnly(
// If there's only one source language, Fortran has to be used
// in order for the sources to compile.
- std::set<std::string> languages;
- gt->GetLanguages(languages, "");
+ std::set<std::string> languages = gt->GetAllConfigCompileLanguages();
// Consider an explicit linker language property, but *not* the
// computed linker language that may depend on linked targets.
// This allows the project to control the language choice in