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/cmSubdirCommand.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/cmSubdirCommand.cxx')
-rw-r--r-- | Source/cmSubdirCommand.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmSubdirCommand.cxx b/Source/cmSubdirCommand.cxx index 2477d7a..47082f1 100644 --- a/Source/cmSubdirCommand.cxx +++ b/Source/cmSubdirCommand.cxx @@ -32,7 +32,7 @@ bool cmSubdirCommand(std::vector<std::string> const& args, std::string srcPath = mf.GetCurrentSourceDirectory() + "/" + i; if (cmSystemTools::FileIsDirectory(srcPath)) { std::string binPath = mf.GetCurrentBinaryDirectory() + "/" + i; - mf.AddSubDirectory(srcPath, binPath, excludeFromAll, false); + mf.AddSubDirectory(srcPath, binPath, excludeFromAll, false, false); } // otherwise it is a full path else if (cmSystemTools::FileIsDirectory(i)) { @@ -40,7 +40,7 @@ bool cmSubdirCommand(std::vector<std::string> const& args, // element from the source path and use that std::string binPath = mf.GetCurrentBinaryDirectory() + "/" + cmSystemTools::GetFilenameName(i); - mf.AddSubDirectory(i, binPath, excludeFromAll, false); + mf.AddSubDirectory(i, binPath, excludeFromAll, false, false); } else { status.SetError(cmStrCat("Incorrect SUBDIRS command. Directory: ", i, " does not exist.")); |