File tree Expand file tree Collapse file tree 4 files changed +20
-16
lines changed
test/transitive_dependency/cmake Expand file tree Collapse file tree 4 files changed +20
-16
lines changed Original file line number Diff line number Diff line change 19
19
- name : Setup cmake
20
20
21
21
with :
22
- cmake-version : 3.18 .4
22
+ cmake-version : 3.24 .4
23
23
24
24
- uses : actions/setup-python@v4
25
25
with :
Original file line number Diff line number Diff line change 27
27
- name : Setup cmake
28
28
29
29
with :
30
- cmake-version : 3.18 .4
30
+ cmake-version : 3.24 .4
31
31
32
32
- name : test and install local build
33
33
run : |
57
57
- name : Setup cmake
58
58
59
59
with :
60
- cmake-version : 3.18 .4
60
+ cmake-version : 3.24 .4
61
61
62
62
- name : build for packaging
63
63
run : |
Original file line number Diff line number Diff line change 1
- /build
1
+ . * .swp
2
+ build /
2
3
/out
3
4
/.vs
4
5
/.cache
Original file line number Diff line number Diff line change 1
- set (CPM_DOWNLOAD_VERSION 0.35.5)
1
+ # SPDX - License - Identifier : MIT
2
+ #
3
+ # SPDX - FileCopyrightText : Copyright(c) 2019 - 2023 Lars Melchior and contributors
4
+
5
+ set (CPM_DOWNLOAD_VERSION 0.40.6)
6
+ set (CPM_HASH_SUM "3440292907e35353bf0761049d3680e9ed0031443c8ebeb9cbb6a421c4550ec1" )
2
7
3
8
if (CPM_SOURCE_CACHE)
4
- # Expand relative path. This is important if the provided path contains a tilde (~)
5
- get_filename_component (CPM_SOURCE_CACHE ${CPM_SOURCE_CACHE} ABSOLUTE )
6
9
set (CPM_DOWNLOAD_LOCATION "${CPM_SOURCE_CACHE} /cpm/CPM_${CPM_DOWNLOAD_VERSION} .cmake" )
7
- elseif (DEFINED ENV{CPM_SOURCE_CACHE})
8
- set (CPM_DOWNLOAD_LOCATION "$ENV{CPM_SOURCE_CACHE} /cpm/CPM_${CPM_DOWNLOAD_VERSION} .cmake" )
10
+ elseif (DEFINED $ ENV{CPM_SOURCE_CACHE} )
11
+ set (CPM_DOWNLOAD_LOCATION "$ENV{CPM_SOURCE_CACHE} /cpm/" " CPM_${CPM_DOWNLOAD_VERSION} .cmake" )
9
12
else ()
10
13
set (CPM_DOWNLOAD_LOCATION "${CMAKE_BINARY_DIR} /cmake/CPM_${CPM_DOWNLOAD_VERSION} .cmake" )
11
14
endif ()
12
15
13
- if ( NOT ( EXISTS ${CPM_DOWNLOAD_LOCATION} ) )
14
- message ( STATUS "Downloading CPM.cmake to ${CPM_DOWNLOAD_LOCATION} " )
15
- file (DOWNLOAD
16
- https://github.com/TheLartians/CPM.cmake/releases/download/v ${CPM_DOWNLOAD_VERSION} /CPM.cmake
17
- ${CPM_DOWNLOAD_LOCATION}
18
- )
19
- endif ( )
16
+ # Expand relative path.This is important if the provided path contains a tilde(~ )
17
+ get_filename_component (CPM_DOWNLOAD_LOCATION ${CPM_DOWNLOAD_LOCATION} ABSOLUTE )
18
+
19
+ file (DOWNLOAD
20
+ https://github.com/cpm-cmake/CPM.cmake/releases/download/v ${CPM_DOWNLOAD_VERSION} /CPM.cmake
21
+ ${CPM_DOWNLOAD_LOCATION} EXPECTED_HASH SHA256= ${CPM_HASH_SUM}
22
+ )
20
23
21
24
include (${CPM_DOWNLOAD_LOCATION} )
You can’t perform that action at this time.
0 commit comments