diff options
author | Brad King <brad.king@kitware.com> | 2014-12-06 12:36:52 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-12-06 12:36:52 (GMT) |
commit | 6c67b8168cd44e5900982ca3e36049792934d83d (patch) | |
tree | 6e6b39869b23123cc725fb61874188d4609262b3 /Source/cmLocalUnixMakefileGenerator3.h | |
parent | 65ea5eb721d820551653bf6471e83ed5f4a5ba13 (diff) | |
download | CMake-6c67b8168cd44e5900982ca3e36049792934d83d.zip CMake-6c67b8168cd44e5900982ca3e36049792934d83d.tar.gz CMake-6c67b8168cd44e5900982ca3e36049792934d83d.tar.bz2 |
Makefile: Workaround Borland Make bug with multiple outputs
Given a rule of the form
out1 out2: dep1
out1 out2: dep2
Borland Make complains that there are multiple rules for "out1"
even though this works when there is only one output. Instead
generate
out1 out2: dep1 dep2
for Borland Make, but only when there are multiple outputs.
Diffstat (limited to 'Source/cmLocalUnixMakefileGenerator3.h')
-rw-r--r-- | Source/cmLocalUnixMakefileGenerator3.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator3.h b/Source/cmLocalUnixMakefileGenerator3.h index 65265ce..7c8e27f 100644 --- a/Source/cmLocalUnixMakefileGenerator3.h +++ b/Source/cmLocalUnixMakefileGenerator3.h @@ -161,6 +161,9 @@ public: void SetBorlandMakeCurlyHack(bool b) { this->BorlandMakeCurlyHack = b; } + void SetNoMultiOutputMultiDepRules(bool b) + { this->NoMultiOutputMultiDepRules = b; } + // used in writing out Cmake files such as WriteDirectoryInformation static void WriteCMakeArgument(std::ostream& os, const char* s); @@ -345,6 +348,7 @@ private: bool PassMakeflags; bool MakeCommandEscapeTargetTwice; bool BorlandMakeCurlyHack; + bool NoMultiOutputMultiDepRules; //========================================================================== std::string HomeRelativeOutputPath; |