mirror of
https://github.com/cpm-cmake/CPM.cmake.git
synced 2025-11-17 14:47:30 -05:00
* add dependencies using EXCLUDE_FROM_ALL flag * respect DOWNLOAD_ONLY flag * set EXCLUDE_FROM_ALL as an optional flag * use one value arg for consistency * fix argument passing * add unit test * update cmake-format
14 lines
254 B
CMake
14 lines
254 B
CMake
cmake_minimum_required(VERSION 3.14 FATAL_ERROR)
|
|
|
|
project(CPMTest)
|
|
|
|
# ---- Dependencies ----
|
|
|
|
include(@CPM_PATH@/CPM.cmake)
|
|
|
|
CPMAddPackage(
|
|
NAME BrokenDependency
|
|
SOURCE_DIR ${CMAKE_CURRENT_LIST_DIR}/dependency
|
|
EXCLUDE_FROM_ALL @EXCLUDE_FROM_ALL@
|
|
)
|