diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-10-07 17:25:29 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-10-10 09:04:39 (GMT) |
commit | a367416cec8297c5a567825217b933f4539a44e4 (patch) | |
tree | 54d57c0bfd583f97699c7dad5e4d218f16689e20 /Source/cmExtraEclipseCDT4Generator.cxx | |
parent | bbef3c2da83b7a69d1f99b21dc92d5506d98fb35 (diff) | |
download | CMake-a367416cec8297c5a567825217b933f4539a44e4.zip CMake-a367416cec8297c5a567825217b933f4539a44e4.tar.gz CMake-a367416cec8297c5a567825217b933f4539a44e4.tar.bz2 |
cmLocalGenerator: Add current source directory accessor.
Diffstat (limited to 'Source/cmExtraEclipseCDT4Generator.cxx')
-rw-r--r-- | Source/cmExtraEclipseCDT4Generator.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmExtraEclipseCDT4Generator.cxx b/Source/cmExtraEclipseCDT4Generator.cxx index cca3858..fdfa35e 100644 --- a/Source/cmExtraEclipseCDT4Generator.cxx +++ b/Source/cmExtraEclipseCDT4Generator.cxx @@ -497,7 +497,7 @@ void cmExtraEclipseCDT4Generator::CreateProjectFile() std::string sourceLinkedResourceName = "[Source directory]"; std::string linkSourceDirectory = this->GetEclipsePath( - mf->GetCurrentSourceDirectory()); + lg->GetCurrentSourceDirectory()); // .project dir can't be subdir of a linked resource dir if (!cmSystemTools::IsSubDirectory(this->HomeOutputDirectory, linkSourceDirectory)) @@ -638,7 +638,7 @@ void cmExtraEclipseCDT4Generator::CreateLinksToSubprojects( ++it) { std::string linkSourceDirectory = this->GetEclipsePath( - it->second[0]->GetMakefile()->GetCurrentSourceDirectory()); + it->second[0]->GetCurrentSourceDirectory()); // a linked resource must not point to a parent directory of .project or // .project itself if ((baseDir != linkSourceDirectory) && |