mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-23 14:48:19 -05:00
29e31e2825
Allow FetchContent_MakeAvailable() to try a call to find_package() first, or redirect a find_package() call to FetchContent_MakeAvailable(). The user can set variables to control which of these are allowed or tried by default. Fixes: #21687
10 lines
208 B
CMake
10 lines
208 B
CMake
include(FetchContent)
|
|
|
|
FetchContent_Declare(
|
|
AddedProject
|
|
SOURCE_DIR ${CMAKE_CURRENT_LIST_DIR}/AddedProject
|
|
# The following two args are mutually exclusive
|
|
OVERRIDE_FIND_PACKAGE
|
|
FIND_PACKAGE_ARGS
|
|
)
|