summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalVisualStudioGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-03-04 13:35:38 (GMT)
committerKitware Robot <kwrobot@kitware.com>2019-03-04 13:35:46 (GMT)
commitdbd3b1ac90b70f31f10488a97ec72c6a435106ec (patch)
tree3a6c0b22b5a65c5ad1fac3a3bfc92da24160864d /Source/cmGlobalVisualStudioGenerator.cxx
parentd1558fbf3ab770b8691a8548a297d1c48fe666eb (diff)
parent0b82f56ac69f2140cc05e7bdd4564ebf87ea6c6f (diff)
downloadCMake-dbd3b1ac90b70f31f10488a97ec72c6a435106ec.zip
CMake-dbd3b1ac90b70f31f10488a97ec72c6a435106ec.tar.gz
CMake-dbd3b1ac90b70f31f10488a97ec72c6a435106ec.tar.bz2
Merge topic 'vs-fortran-rc'
0b82f56ac6 VS: Fix Fortran target type selection with RC sources Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3050
Diffstat (limited to 'Source/cmGlobalVisualStudioGenerator.cxx')
-rw-r--r--Source/cmGlobalVisualStudioGenerator.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmGlobalVisualStudioGenerator.cxx b/Source/cmGlobalVisualStudioGenerator.cxx
index 45927c9..bc40a5c 100644
--- a/Source/cmGlobalVisualStudioGenerator.cxx
+++ b/Source/cmGlobalVisualStudioGenerator.cxx
@@ -834,6 +834,10 @@ bool cmGlobalVisualStudioGenerator::TargetIsFortranOnly(
if (linkLang && *linkLang) {
languages.insert(linkLang);
}
+
+ // Intel Fortran .vfproj files do support the resource compiler.
+ languages.erase("RC");
+
return languages.size() == 1 && *languages.begin() == "Fortran";
}