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/cmMakefile.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/cmMakefile.cxx')
-rw-r--r-- | Source/cmMakefile.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index 97a3db9..c32c564 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -1759,7 +1759,8 @@ void cmMakefile::ConfigureSubDirectory(cmMakefile* mf) void cmMakefile::AddSubDirectory(const std::string& srcPath, const std::string& binPath, - bool excludeFromAll, bool immediate) + bool excludeFromAll, bool immediate, + bool system) { if (this->DeferRunning) { this->IssueMessage( @@ -1789,6 +1790,9 @@ void cmMakefile::AddSubDirectory(const std::string& srcPath, if (excludeFromAll) { subMf->SetProperty("EXCLUDE_FROM_ALL", "TRUE"); } + if (system) { + subMf->SetProperty("SYSTEM", "TRUE"); + } if (immediate) { this->ConfigureSubDirectory(subMf); |