diff options
author | Brad King <brad.king@kitware.com> | 2022-09-27 14:28:30 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2022-09-27 14:28:49 (GMT) |
commit | 50b668ddc833f7312cbd1140ddcca85ac46a1b2b (patch) | |
tree | 11555484691ac8b02741ba95451d6163af3128b4 /Source/cmMakefile.cxx | |
parent | 954b861dba50b4f84c2a1e58e5bdf3f05179572b (diff) | |
parent | 2eb30a7036214ec960f0666163ff44ef754f6afe (diff) | |
download | CMake-50b668ddc833f7312cbd1140ddcca85ac46a1b2b.zip CMake-50b668ddc833f7312cbd1140ddcca85ac46a1b2b.tar.gz CMake-50b668ddc833f7312cbd1140ddcca85ac46a1b2b.tar.bz2 |
Merge topic 'add_subdirectory_system'
2eb30a7036 add_subdirectory: Add SYSTEM option
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !7399
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 cf5d880..6e0d704 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -1783,7 +1783,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( @@ -1813,6 +1814,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); |