mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-25 01:28:50 -05:00
add_subdirectory: Run subdirectory install rules in correct order
Before this change, install rules created by add_subdirectory() would be executed after all of the top-level install rules, even if they were declared before the top-level rules. This change adds a new policy, CMP0082, which interleaves the add_subdirectory() install rules with the other install rules so they are run in the correct order.
This commit is contained in:
@@ -37,9 +37,9 @@ void cmInstallScriptGenerator::AddScriptInstallRule(std::ostream& os,
|
||||
std::string const& script)
|
||||
{
|
||||
if (this->Code) {
|
||||
os << indent.Next() << script << "\n";
|
||||
os << indent << script << "\n";
|
||||
} else {
|
||||
os << indent.Next() << "include(\"" << script << "\")\n";
|
||||
os << indent << "include(\"" << script << "\")\n";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user