summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/FetchContent_find_package/Try_find_package-NEVER.cmake
blob: 92cb7d0dfaa0328722b201a6458ae580ac896230 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
include(FetchContent)

set(CMAKE_PREFIX_PATH ${CMAKE_CURRENT_LIST_DIR}/PackageConfigs)
set(FETCHCONTENT_TRY_FIND_PACKAGE_MODE NEVER)

FetchContent_Declare(
  AddedProject
  SOURCE_DIR ${CMAKE_CURRENT_LIST_DIR}/AddedProject
  FIND_PACKAGE_ARGS REQUIRED
)

FetchContent_MakeAvailable(AddedProject)