diff options
author | Da Quexian <daquexian566@gmail.com> | 2022-06-22 12:18:06 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-09-26 14:56:54 (GMT) |
commit | 2eb30a7036214ec960f0666163ff44ef754f6afe (patch) | |
tree | 19f7bc19562409245f326da04371acbca8e9ea85 /Source/cmTarget.cxx | |
parent | 80e4a155e0feddf1a02fb2701dff5ddbb427552a (diff) | |
download | CMake-2eb30a7036214ec960f0666163ff44ef754f6afe.zip CMake-2eb30a7036214ec960f0666163ff44ef754f6afe.tar.gz CMake-2eb30a7036214ec960f0666163ff44ef754f6afe.tar.bz2 |
add_subdirectory: Add SYSTEM option
Fixes: #22401
Signed-off-by: Da Quexian <daquexian566@gmail.com>
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r-- | Source/cmTarget.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index c76e2cb..4df6681 100644 --- a/Source/cmTarget.cxx +++ b/Source/cmTarget.cxx @@ -776,7 +776,7 @@ cmTarget::cmTarget(std::string const& name, cmStateEnums::TargetType type, } } - if (this->IsImported()) { + if (this->IsImported() || mf->GetPropertyAsBool("SYSTEM")) { this->SetProperty("SYSTEM", "ON"); } |