Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit dd91cb9

Browse files
authoredNov 14, 2023
build: remove CPM.cmake file File (#54)
* build: move the simplified content of `cmake/CPM.cmake` to `CMakeLists.txt` * build: download the `CPM.cmake` inside `_deps` directory instead
1 parent 170d21e commit dd91cb9

File tree

2 files changed

+4
-23
lines changed

2 files changed

+4
-23
lines changed
 

‎CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@ cmake_minimum_required(VERSION 3.0)
22

33
project(example)
44

5-
include(cmake/CPM.cmake)
5+
file(DOWNLOAD https://github.com/cpm-cmake/CPM.cmake/releases/download/v0.38.6/CPM.cmake
6+
${CMAKE_BINARY_DIR}/_deps/CPM.cmake
7+
EXPECTED_HASH SHA256=11c3fa5f1ba14f15d31c2fb63dbc8628ee133d81c8d764caad9a8db9e0bacb07)
8+
include(${CMAKE_BINARY_DIR}/_deps/CPM.cmake)
69
cpmusepackagelock(package-lock)
710

811
cpmgetpackage(CheckWarning.cmake)

‎cmake/CPM.cmake

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)
Please sign in to comment.