Skip to content

Commit 777fbc4

Browse files
committed
update cmake version range, no download progress, set policy version for libs
1 parent 5d86fa8 commit 777fbc4

27 files changed

Lines changed: 31 additions & 11 deletions

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.28...3.31 FATAL_ERROR)
1+
cmake_minimum_required(VERSION 3.28...4.1 FATAL_ERROR)
22

33
# Disable in source build
44
set(CMAKE_DISABLE_SOURCE_CHANGES ON)

cmake/build_info_script.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.28...3.31 FATAL_ERROR)
1+
cmake_minimum_required(VERSION 3.28...4.1 FATAL_ERROR)
22

33
# Directories
44
get_filename_component(cmake_modules_dir ${CMAKE_SCRIPT_MODE_FILE} DIRECTORY)

cmake/deps/cmakerc.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ include_guard(GLOBAL)
44
FetchContent_Declare(cmrc
55
URL "https://github.com/vector-of-bool/cmrc/archive/952ffddba731fc110bd50409e8d2b8a06abbd237.tar.gz"
66
URL_HASH SHA256=9a1e00d18da46d9765ba5a59f7275dea8b87b242b8885588b3a4694bd4d19747
7+
DOWNLOAD_NO_PROGRESS ON
78
SOURCE_SUBDIR non-existing-path-to-prevent-add-subdirectory
89
EXCLUDE_FROM_ALL
910
SYSTEM)

cmake/deps/freetype.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ include_guard(GLOBAL)
44
FetchContent_Declare(freetype
55
URL "https://github.com/freetype/freetype/archive/VER-2-13-3.tar.gz"
66
URL_HASH SHA256=bc5c898e4756d373e0d991bab053036c5eb2aa7c0d5c67e8662ddc6da40c4103
7+
DOWNLOAD_NO_PROGRESS ON
78
EXCLUDE_FROM_ALL
89
SYSTEM)
910
message(STATUS "Fetch freetype ...")
@@ -13,6 +14,7 @@ option(FT_DISABLE_PNG "" ON)
1314
option(FT_DISABLE_HARFBUZZ "" ON)
1415
option(FT_DISABLE_BROTLI "" ON)
1516
set(SKIP_INSTALL_ALL TRUE)
17+
SET(CMAKE_POLICY_VERSION_MINIMUM 3.10) # Remove with next version
1618
FetchContent_MakeAvailable(freetype)
1719
unset(SKIP_INSTALL_ALL)
1820
set_target_properties(freetype PROPERTIES

cmake/deps/glad/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.28...3.31 FATAL_ERROR)
1+
cmake_minimum_required(VERSION 3.28...4.1 FATAL_ERROR)
22

33
project(glad C)
44

cmake/deps/glfw.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ include_guard(GLOBAL)
44
FetchContent_Declare(glfw
55
URL "https://github.com/glfw/glfw/archive/3.4.tar.gz"
66
URL_HASH SHA256=c038d34200234d071fae9345bc455e4a8f2f544ab60150765d7704e08f3dac01
7+
DOWNLOAD_NO_PROGRESS ON
78
EXCLUDE_FROM_ALL
89
SYSTEM)
910
message(STATUS "Fetch glfw ...")

cmake/deps/glm.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@ include_guard(GLOBAL)
44
FetchContent_Declare(glm
55
URL "https://github.com/g-truc/glm/archive/1.0.1.tar.gz"
66
URL_HASH SHA256=9f3174561fd26904b23f0db5e560971cbf9b3cbda0b280f04d5c379d03bf234c
7+
DOWNLOAD_NO_PROGRESS ON
78
EXCLUDE_FROM_ALL
89
SYSTEM)
910
message(STATUS "Fetch glm ...")
11+
SET(CMAKE_POLICY_VERSION_MINIMUM 3.10) # Remove with next version
1012
FetchContent_MakeAvailable(glm)
1113
target_compile_definitions(glm PUBLIC GLM_ENABLE_EXPERIMENTAL)
1214
set_target_properties(glm PROPERTIES FOLDER libs)

cmake/deps/glowl.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ find_package(glad REQUIRED)
66
FetchContent_Declare(glowl
77
URL "https://github.com/invor/glowl/archive/e075724a649bd1d57e464d9432556fb69be22699.tar.gz"
88
URL_HASH SHA256=aa4d556d4942105d5159a098cceb2845ac173fb80bda240de164f11e88d08f05
9+
DOWNLOAD_NO_PROGRESS ON
910
EXCLUDE_FROM_ALL
1011
SYSTEM)
1112
message(STATUS "Fetch glowl ...")

cmake/deps/iconfontcppheaders.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ include_guard(GLOBAL)
44
FetchContent_Declare(iconfontcppheaders
55
URL "https://github.com/juliettef/IconFontCppHeaders/archive/1c004c59fea885bab18897fb8387df10c7d9307f.tar.gz"
66
URL_HASH SHA256=bb5171c544bc18a42e84ba5ccb842426dbb8fa6dfe91ff632e0c8fdce13bc912
7+
DOWNLOAD_NO_PROGRESS ON
78
SOURCE_SUBDIR non-existing-path-to-prevent-add-subdirectory
89
EXCLUDE_FROM_ALL
910
SYSTEM)

cmake/deps/iconfontcppheaders/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.28...3.31 FATAL_ERROR)
1+
cmake_minimum_required(VERSION 3.28...4.1 FATAL_ERROR)
22

33
project(iconfontcppheaders)
44

0 commit comments

Comments
 (0)