summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCraig Scott <craig.scott@crascit.com>2022-12-02 04:19:48 (GMT)
committerCraig Scott <craig.scott@crascit.com>2022-12-02 07:41:18 (GMT)
commit4b85141f8373f24ecace6d12afaaa56adf60273c (patch)
treea9708c22c406c302d4952b135e20d7f09dabbcda
parent0b6bfb1ed86c1f1bd5f36a8f21c11f9eae5b7949 (diff)
downloadCMake-4b85141f8373f24ecace6d12afaaa56adf60273c.zip
CMake-4b85141f8373f24ecace6d12afaaa56adf60273c.tar.gz
CMake-4b85141f8373f24ecace6d12afaaa56adf60273c.tar.bz2
FetchContent: Don't pass SYSTEM through to sub-build
If we don't filter out SYSTEM from the arguments we pass through to ExternalProject_Add(), it gets appended as a list item to whatever arguments precede it because ExternalProject_Add() doesn't recognize it as a keyword. Fixes: #24201
-rw-r--r--Modules/FetchContent.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/FetchContent.cmake b/Modules/FetchContent.cmake
index ac3918c..25b0683 100644
--- a/Modules/FetchContent.cmake
+++ b/Modules/FetchContent.cmake
@@ -1427,6 +1427,9 @@ function(__FetchContent_directPopulate contentName)
set(options
QUIET
+ # SYSTEM has no meaning for ExternalProject, it is only used by us in
+ # FetchContent_MakeAvailable(). We need to parse and discard it here.
+ SYSTEM
)
set(oneValueArgs
SUBBUILD_DIR