only generate test target when enabled
This commit is contained in:
parent
d18c9559b3
commit
d0bc3b9acd
@ -2669,14 +2669,17 @@ void cmLocalUnixMakefileGenerator::OutputMakeRules(std::ostream& fout)
|
|||||||
ctest = m_Makefile->GetDefinition("EXECUTABLE_OUTPUT_PATH");
|
ctest = m_Makefile->GetDefinition("EXECUTABLE_OUTPUT_PATH");
|
||||||
ctest += "/ctest";
|
ctest += "/ctest";
|
||||||
}
|
}
|
||||||
fout << "ARGS=\n";
|
if (m_Makefile->IsOn("CMAKE_TESTING_ENABLED"))
|
||||||
std::string cmd = this->ConvertToOutputForExisting(ctest.c_str());
|
{
|
||||||
cmd += " $(ARGS)";
|
fout << "ARGS=\n";
|
||||||
this->OutputMakeRule(fout,
|
std::string cmd = this->ConvertToOutputForExisting(ctest.c_str());
|
||||||
"tests",
|
cmd += " $(ARGS)";
|
||||||
"test",
|
this->OutputMakeRule(fout,
|
||||||
"",
|
"tests",
|
||||||
cmd.c_str());
|
"test",
|
||||||
|
"",
|
||||||
|
cmd.c_str());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Loading…
x
Reference in New Issue
Block a user