Skip to content

Commit c48af0a

Browse files
committed
Rebase and update packages used
1 parent e784ea2 commit c48af0a

File tree

6 files changed

+79
-9
lines changed

6 files changed

+79
-9
lines changed

.clang-format

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
---
2+
BasedOnStyle: LLVM
3+
Language: Json
4+
IndentWidth: 4
5+
UseTab: Never
6+
---
7+
Language: Cpp
18
AccessModifierOffset: -2
29
AlignAfterOpenBracket: DontAlign
310
AlignConsecutiveAssignments: false
@@ -69,7 +76,6 @@ IndentWrappedFunctionNames: true
6976
JavaScriptQuotes: Leave
7077
JavaScriptWrapImports: true
7178
KeepEmptyLinesAtTheStartOfBlocks: true
72-
Language: Cpp
7379
MacroBlockBegin: ''
7480
MacroBlockEnd: ''
7581
MaxEmptyLinesToKeep: 2

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.21...3.27)
1+
cmake_minimum_required(VERSION 3.21...4.1)
22

33
# This template attempts to be "fetch_content"-able
44
# so that it works well with tools like CPM or other

CMakePresets.json

Lines changed: 61 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,19 @@
1212
"hidden": true,
1313
"generator": "Ninja",
1414
"binaryDir": "${sourceDir}/out/build/${presetName}",
15-
"installDir": "${sourceDir}/out/install/${presetName}"
15+
"installDir": "${sourceDir}/out/install/${presetName}",
16+
"cacheVariables": {
17+
"CMAKE_PREFIX_PATH": {
18+
"type": "path",
19+
"value": "${sourceDir}/out/install/${presetName}"
20+
},
21+
"CMAKE_CXX_EXTENSIONS": false,
22+
"CMAKE_CXX_STANDARD": "23",
23+
"CMAKE_CXX_STANDARD_REQUIRED": true,
24+
"CMAKE_EXPORT_COMPILE_COMMANDS": true,
25+
"CMAKE_MESSAGE_LOG_LEVEL": "TRACE",
26+
"CMAKE_SKIP_TEST_ALL_DEPENDENCY": false
27+
}
1628
},
1729
{
1830
"name": "conf-windows-common",
@@ -188,6 +200,54 @@
188200
}
189201
}
190202
],
203+
"buildPresets":[
204+
{
205+
"name": "build-common",
206+
"description": "Build CMake settings that apply to all configurations",
207+
"hidden": true,
208+
"jobs": 4
209+
},
210+
{
211+
"name": "build-windows-msvc-debug-developer-mode",
212+
"inherits": "build-common",
213+
"configurePreset": "windows-msvc-debug-developer-mode"
214+
},
215+
{
216+
"name": "build-windows-msvc-release-developer-mode",
217+
"inherits": "build-common",
218+
"configurePreset": "windows-msvc-release-developer-mode"
219+
},
220+
{
221+
"name": "build-windows-clang-debug",
222+
"inherits": "build-common",
223+
"configurePreset": "windows-clang-debug"
224+
},
225+
{
226+
"name": "build-windows-clang-release",
227+
"inherits": "build-common",
228+
"configurePreset": "windows-clang-release"
229+
},
230+
{
231+
"name": "build-unixlike-gcc-debug",
232+
"inherits": "build-common",
233+
"configurePreset": "unixlike-gcc-debug"
234+
},
235+
{
236+
"name": "build-unixlike-gcc-release",
237+
"inherits": "build-common",
238+
"configurePreset": "unixlike-gcc-release"
239+
},
240+
{
241+
"name": "build-unixlike-clang-debug",
242+
"inherits": "build-common",
243+
"configurePreset": "unixlike-clang-debug"
244+
},
245+
{
246+
"name": "build-unixlike-clang-release",
247+
"inherits": "build-common",
248+
"configurePreset": "unixlike-clang-release"
249+
}
250+
],
191251
"testPresets": [
192252
{
193253
"name": "test-common",

Dependencies.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ function(myproject_setup_dependencies)
99
# already been provided to us by a parent project
1010

1111
if(NOT TARGET fmtlib::fmtlib)
12-
cpmaddpackage("gh:fmtlib/fmt#11.1.4")
12+
cpmaddpackage("gh:fmtlib/fmt#11.2.0")
1313
endif()
1414

1515
if(NOT TARGET spdlog::spdlog)
1616
cpmaddpackage(
1717
NAME
1818
spdlog
1919
VERSION
20-
1.15.2
20+
1.15.3
2121
GITHUB_REPOSITORY
2222
"gabime/spdlog"
2323
OPTIONS

cmake/CPM.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
#
33
# SPDX-FileCopyrightText: Copyright (c) 2019-2023 Lars Melchior and contributors
44

5-
set(CPM_DOWNLOAD_VERSION 0.40.8)
6-
set(CPM_HASH_SUM "78ba32abdf798bc616bab7c73aac32a17bbd7b06ad9e26a6add69de8f3ae4791")
5+
set(CPM_DOWNLOAD_VERSION 0.42.0)
6+
set(CPM_HASH_SUM "2020b4fc42dba44817983e06342e682ecfc3d2f484a581f11cc5731fbe4dce8a")
77

88
if(CPM_SOURCE_CACHE)
99
set(CPM_DOWNLOAD_LOCATION "${CPM_SOURCE_CACHE}/cpm/CPM_${CPM_DOWNLOAD_VERSION}.cmake")

test/CMakeLists.txt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.21...3.27)
1+
cmake_minimum_required(VERSION 3.21...4.1)
22

33
project(CmakeConfigPackageTests LANGUAGES CXX)
44

@@ -17,7 +17,11 @@ endif()
1717

1818
# ---- Dependencies ----
1919

20-
include(${Catch2_SOURCE_DIR}/extras/Catch.cmake)
20+
if(Catch2_DIR)
21+
include(${Catch2_DIR}/Catch.cmake)
22+
else()
23+
include(${Catch2_SOURCE_DIR}/extras/Catch.cmake)
24+
endif()
2125

2226
if(TARGET intro)
2327
# Provide a simple smoke test to make sure that the CLI works and can display a --help message

0 commit comments

Comments
 (0)