mirror of
https://github.com/cpm-cmake/CPM.cmake.git
synced 2025-11-17 22:58:14 -05:00
Add fetchcontent_dependency unit test:
* This test should highlight the fact that cpm_add_subdirectory is always called, even when
cpm_fetch_package isn't populating the dependency
* NO_CACHE YES highlight a bug introduced in 32b063eba5 where
cpm_fetch_package was checking undefined ${lower_case_name}_POPULATED variable
https://github.com/cpm-cmake/CPM.cmake/issues/287
16 lines
287 B
CMake
16 lines
287 B
CMake
cmake_minimum_required(VERSION 3.14 FATAL_ERROR)
|
|
|
|
project(CPMTest_Dependency)
|
|
|
|
# ---- Dependencies ----
|
|
|
|
include(FetchContent)
|
|
|
|
FetchContent_Declare(
|
|
Fibonacci
|
|
GIT_REPOSITORY https://github.com/cpm-cmake/testpack-fibonacci.git
|
|
GIT_TAG v2.0
|
|
)
|
|
|
|
FetchContent_MakeAvailable(Fibonacci)
|