Files
CMake/Tests/RunCMake/FetchContent_find_package/BadArgs_find_package.cmake
T
Craig Scott 29e31e2825 Packages: Integrate FetchContent and find_package()
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
2022-05-03 16:48:11 +10:00

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
)