summaryrefslogtreecommitdiff
path: root/Modules/FetchContent.cmake
diff options
context:
space:
mode:
authorCraig Scott <craig.scott@crascit.com>2022-12-02 15:19:48 +1100
committerCraig Scott <craig.scott@crascit.com>2022-12-02 18:41:18 +1100
commit4b85141f8373f24ecace6d12afaaa56adf60273c (patch)
treea9708c22c406c302d4952b135e20d7f09dabbcda /Modules/FetchContent.cmake
parent0b6bfb1ed86c1f1bd5f36a8f21c11f9eae5b7949 (diff)
downloadcmake-4b85141f8373f24ecace6d12afaaa56adf60273c.tar.gz
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
Diffstat (limited to 'Modules/FetchContent.cmake')
-rw-r--r--Modules/FetchContent.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/FetchContent.cmake b/Modules/FetchContent.cmake
index ac3918cf8f..25b0683d36 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