mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-22 06:59:01 -06:00
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.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user