summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalCommonGenerator.h
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2023-04-29 15:07:52 (GMT)
committerMarc Chevrier <marc.chevrier@gmail.com>2023-05-02 15:47:04 (GMT)
commit24a3e5cda049138ca178216e0d7b02262e4035ed (patch)
tree5f2cd683d0b435959043f67f924683dc91ba82b4 /Source/cmLocalCommonGenerator.h
parent2488d6dbf7481087fa9ee4a0c77c5e3b0a503387 (diff)
downloadCMake-24a3e5cda049138ca178216e0d7b02262e4035ed.zip
CMake-24a3e5cda049138ca178216e0d7b02262e4035ed.tar.gz
CMake-24a3e5cda049138ca178216e0d7b02262e4035ed.tar.bz2
cmLocalGenerator::MayBeRelativeToWorkDir: take care of all cases
Diffstat (limited to 'Source/cmLocalCommonGenerator.h')
-rw-r--r--Source/cmLocalCommonGenerator.h15
1 files changed, 2 insertions, 13 deletions
diff --git a/Source/cmLocalCommonGenerator.h b/Source/cmLocalCommonGenerator.h
index 0505c13..52f7a9e 100644
--- a/Source/cmLocalCommonGenerator.h
+++ b/Source/cmLocalCommonGenerator.h
@@ -20,15 +20,8 @@ class cmSourceFile;
*/
class cmLocalCommonGenerator : public cmLocalGenerator
{
-protected:
- enum class WorkDir
- {
- TopBin,
- CurBin,
- };
-
public:
- cmLocalCommonGenerator(cmGlobalGenerator* gg, cmMakefile* mf, WorkDir wd);
+ cmLocalCommonGenerator(cmGlobalGenerator* gg, cmMakefile* mf);
~cmLocalCommonGenerator() override;
std::vector<std::string> const& GetConfigNames() const
@@ -36,9 +29,7 @@ public:
return this->ConfigNames;
}
- std::string const& GetWorkingDirectory() const;
-
- std::string MaybeRelativeToWorkDir(std::string const& path) const;
+ virtual std::string const& GetWorkingDirectory() const;
std::string GetTargetFortranFlags(cmGeneratorTarget const* target,
std::string const& config) override;
@@ -48,8 +39,6 @@ public:
cmGeneratorTarget const* gt = nullptr) override;
protected:
- WorkDir WorkingDirectory;
-
std::vector<std::string> ConfigNames;
friend class cmCommonTargetGenerator;