summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalVisualStudioGenerator.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-08-05 15:37:50 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-08-26 17:46:32 (GMT)
commit69329fff70300debf10b62ac08a6bcee9ae7bc3c (patch)
tree782390e19f3c69c3ed07fdfeacbcbeaaa683007f /Source/cmGlobalVisualStudioGenerator.cxx
parent0431f2c4d7cbfcd873bc34caee9ed09253e8c8ad (diff)
downloadCMake-69329fff70300debf10b62ac08a6bcee9ae7bc3c.zip
CMake-69329fff70300debf10b62ac08a6bcee9ae7bc3c.tar.gz
CMake-69329fff70300debf10b62ac08a6bcee9ae7bc3c.tar.bz2
cmGeneratorTarget: Move GetLanguages from cmTarget.
Diffstat (limited to 'Source/cmGlobalVisualStudioGenerator.cxx')
-rw-r--r--Source/cmGlobalVisualStudioGenerator.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmGlobalVisualStudioGenerator.cxx b/Source/cmGlobalVisualStudioGenerator.cxx
index 634366e..9b1f4c2 100644
--- a/Source/cmGlobalVisualStudioGenerator.cxx
+++ b/Source/cmGlobalVisualStudioGenerator.cxx
@@ -836,6 +836,8 @@ void RegisterVisualStudioMacros(const std::string& macrosFile,
bool
cmGlobalVisualStudioGenerator::TargetIsFortranOnly(cmTarget const& target)
{
+ cmGeneratorTarget* gt = this->GetGeneratorTarget(&target);
+
// check to see if this is a fortran build
std::set<std::string> languages;
{
@@ -846,7 +848,7 @@ cmGlobalVisualStudioGenerator::TargetIsFortranOnly(cmTarget const& target)
return false;
}
}
- target.GetLanguages(languages, "");
+ gt->GetLanguages(languages, "");
if(languages.size() == 1)
{
if(*languages.begin() == "Fortran")