mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-02 20:29:49 -05:00
Merge topic 'add_export_no_system'
9680b3b279 Add EXPORT_NO_SYSTEM target property, deprecate IMPORTED_NO_SYSTEM
Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !7379
This commit is contained in:
@@ -1088,6 +1088,10 @@ void cmExportFileGenerator::GenerateImportTargetCode(
|
||||
<< " PROPERTY IMPORTED_NO_SYSTEM 1)\n";
|
||||
}
|
||||
|
||||
if (target->GetPropertyAsBool("EXPORT_NO_SYSTEM")) {
|
||||
os << "set_property(TARGET " << targetName << " PROPERTY SYSTEM 0)\n";
|
||||
}
|
||||
|
||||
os << "\n";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user