diff options
author | Brad King <brad.king@kitware.com> | 2019-03-04 13:35:38 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2019-03-04 13:35:46 (GMT) |
commit | dbd3b1ac90b70f31f10488a97ec72c6a435106ec (patch) | |
tree | 3a6c0b22b5a65c5ad1fac3a3bfc92da24160864d /Source/cmGlobalVisualStudioGenerator.cxx | |
parent | d1558fbf3ab770b8691a8548a297d1c48fe666eb (diff) | |
parent | 0b82f56ac69f2140cc05e7bdd4564ebf87ea6c6f (diff) | |
download | CMake-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.cxx | 4 |
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"; } |