diff options
author | Da Quexian <daquexian566@gmail.com> | 2022-06-17 06:41:54 (GMT) |
---|---|---|
committer | Da Quexian <daquexian566@gmail.com> | 2022-06-17 14:38:07 (GMT) |
commit | 9680b3b2794b635b23fcbc072ed9ce9dac3c2333 (patch) | |
tree | a9167b522c25e67c1eff48ce2dca6fe21fd6dc59 /Source/cmExportFileGenerator.cxx | |
parent | 467d0e01f871fdbbc57b7403939bd50195b92631 (diff) | |
download | CMake-9680b3b2794b635b23fcbc072ed9ce9dac3c2333.zip CMake-9680b3b2794b635b23fcbc072ed9ce9dac3c2333.tar.gz CMake-9680b3b2794b635b23fcbc072ed9ce9dac3c2333.tar.bz2 |
Add EXPORT_NO_SYSTEM target property, deprecate IMPORTED_NO_SYSTEM
Issue: #18040
Signed-off-by: Da Quexian <daquexian566@gmail.com>
Diffstat (limited to 'Source/cmExportFileGenerator.cxx')
-rw-r--r-- | Source/cmExportFileGenerator.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmExportFileGenerator.cxx b/Source/cmExportFileGenerator.cxx index c4cffa2..9837269 100644 --- a/Source/cmExportFileGenerator.cxx +++ b/Source/cmExportFileGenerator.cxx @@ -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"; } |