Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ repos:
hooks:
- id: clang-format
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
rev: v9.25.0
rev: v9.26.0
hooks:
- id: commitlint
stages: [commit-msg]
Expand All @@ -61,6 +61,6 @@ repos:
- id: rst-inline-touching-normal
- id: text-unicode-replacement-char
- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.11.18
rev: 0.11.29
hooks:
- id: uv-lock
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 4.3 FATAL_ERROR)
cmake_minimum_required(VERSION 4.4 FATAL_ERROR)

project(
cpp-project-template
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ source .venv/bin/activate

# install libraries
conan install -pr:a default \
-pr:h conan/<profile matching the compiler in use> \
-pr:a conan/<profile matching the compiler in use> \
-c:a tools.cmake.cmaketoolchain:generator=<CMake generator> \
-c:h tools.build:compiler_executables='{"c": "<CC>", "cpp": "<CXX>"}' \
-c:h tools.build:skip_test=<True|False> \
Expand Down Expand Up @@ -99,7 +99,7 @@ GCOV=<"gcov" for GCC, "llvm-cov gcov" for Clang> gcovr

# install libraries
conan install -pr:a default \
-pr:h conan/<profile matching the compiler in use> \
-pr:a conan/<profile matching the compiler in use> \
-c:a tools.cmake.cmaketoolchain:generator=<CMake generator> \
-c:h tools.env.virtualenv:powershell=pwsh \
-c:h tools.build:compiler_executables='{"c": "<CC>", "cpp": "<CXX>"}' \
Expand Down
3 changes: 2 additions & 1 deletion cmake/defaults.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ endif()
option(ENABLE_HARDENINGS "Enable hardenings" OFF)

# Useful CMake defaults
set(CMAKE_ERROR_DEPRECATED ON)
cmake_diagnostic(SET CMD_DEPRECATED FATAL_ERROR)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
set(CMAKE_FIND_PACKAGE_PREFER_CONFIG ON)
set(CMAKE_COMPILE_WARNING_AS_ERROR ON)
Expand All @@ -33,6 +33,7 @@ set(CMAKE_CXX_SCAN_FOR_MODULES ON)
set(CMAKE_VISIBILITY_INLINES_HIDDEN ON)
set(CMAKE_VERIFY_INTERFACE_HEADER_SETS ON)
set(CMAKE_VERIFY_PRIVATE_HEADER_SETS ON)
set(CMAKE_TEST_BUILD_DEPENDS ON)
set(CMAKE_LINK_WHAT_YOU_USE TRUE)
set(CMAKE_VS_JUST_MY_CODE_DEBUGGING ON)
set(CMAKE_COLOR_DIAGNOSTICS ON)
Expand Down
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ target_link_libraries(
${PROJECT_NAME}
PRIVATE ${CMAKE_THREAD_LIBS_INIT} warnings options math fmt::fmt
)
target_sources(${PROJECT_NAME} PRIVATE main.cpp)
target_sources(${PROJECT_NAME} PRIVATE FILE_SET SOURCES FILES main.cpp)

include(GNUInstallDirs)
install(
Expand Down
2 changes: 1 addition & 1 deletion test/math/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
project(math-test)

add_executable(${PROJECT_NAME})
target_sources(${PROJECT_NAME} PRIVATE math-test.cpp)
target_sources(${PROJECT_NAME} PRIVATE FILE_SET SOURCES FILES math-test.cpp)
target_link_libraries(
${PROJECT_NAME}
PRIVATE warnings options GTest::gtest GTest::gtest_main math
Expand Down
100 changes: 47 additions & 53 deletions uv.lock

Large diffs are not rendered by default.

Loading