mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-05 13:50:10 -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
9 lines
161 B
CMake
9 lines
161 B
CMake
include(FetchContent)
|
|
|
|
set(FETCHCONTENT_TRY_FIND_PACKAGE_MODE BOGUS)
|
|
|
|
FetchContent_Declare(
|
|
AddedProject
|
|
SOURCE_DIR ${CMAKE_CURRENT_LIST_DIR}/AddedProject
|
|
)
|