summaryrefslogtreecommitdiff
path: root/Source/cmCommonTargetGenerator.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-07-29 12:55:58 -0400
committerBrad King <brad.king@kitware.com>2015-07-29 13:20:03 -0400
commit70c21301b274a28dde75b4f2adb141f9b170eb80 (patch)
treeb847e901967286b5aada86ce5353848d29984644 /Source/cmCommonTargetGenerator.h
parent7371d8f3b49c020a14f6324ba5264d17c7dbbaee (diff)
downloadcmake-70c21301b274a28dde75b4f2adb141f9b170eb80.tar.gz
cmCommonTargetGenerator: Store working directory for relative paths
The Makefile generators run tools with the current working directory set to the subdirectory of the build tree for the each target. The Ninja generator runs tools with the current working directory set to the top of the build tree. Tell cmCommonTargetGenerator where the working directory will be so it can compute proper relative paths.
Diffstat (limited to 'Source/cmCommonTargetGenerator.h')
-rw-r--r--Source/cmCommonTargetGenerator.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmCommonTargetGenerator.h b/Source/cmCommonTargetGenerator.h
index aec3148a97..5fd976d5ea 100644
--- a/Source/cmCommonTargetGenerator.h
+++ b/Source/cmCommonTargetGenerator.h
@@ -29,7 +29,8 @@ class cmTarget;
class cmCommonTargetGenerator
{
public:
- cmCommonTargetGenerator(cmGeneratorTarget* gt);
+ cmCommonTargetGenerator(cmOutputConverter::RelativeRoot wd,
+ cmGeneratorTarget* gt);
virtual ~cmCommonTargetGenerator();
std::string const& GetConfigName() const;
@@ -46,6 +47,7 @@ protected:
// Helper to add flag for windows .def file.
void AddModuleDefinitionFlag(std::string& flags);
+ cmOutputConverter::RelativeRoot WorkingDirectory;
cmGeneratorTarget* GeneratorTarget;
cmTarget* Target;
cmMakefile* Makefile;