mirror of
https://github.com/Kitware/CMake.git
synced 2025-12-31 10:50:16 -06:00
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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user