Compare commits

...

10 commits

Author SHA1 Message Date
Ian Torres
12cf5de1a8
Fix GitHub pages (#191)
* Fix GitHub pages

As `peaceiris/actions-gh-pages` README describes, the `permissions / contents / write` definition is required. In other hand, without that, the step will fail. Also a jump to the version 4 is recommended. Basically because i did a test and previous version, as-is doesn't work.

* Space for testing

* switch to ubunto for documentation workflow

* build test without publish

* try again

* add tag restriction and pages back

---------

Co-authored-by: Lars Melchior <TheLartians@users.noreply.github.com>
Co-authored-by: Lars Melchior <lars.melchior@gmail.com>
2025-03-12 19:30:20 +01:00
Max Bretschneider
5115efe66a
Fix fmt dependency version mismatch in CMakeLists.txt (#194)
* Fix fmt dependency version mismatch in CMakeLists.txt

* trigger ci?

---------

Co-authored-by: Lars Melchior <lars.melchior@gmail.com>
2024-12-22 11:47:15 +01:00
sguruswamy-more
cc12978931
Updated CPM to 0.40.2 (#193) 2024-10-18 21:11:21 +02:00
PaulXiCao
e6920f7c12
Update CPM.cmake to version 0.39.0 (#189) 2024-06-07 16:32:16 +00:00
Volodymyr
74fd5a2ff8
update StableCoder/cmake-scripts version (#187)
additional info:
https://github.com/StableCoder/cmake-scripts/releases
https://github.com/StableCoder/cmake-scripts/issues/50
2024-04-22 00:40:54 +02:00
Ian
9f4867aa5e
Upgrade fmt version from 9.1.0 to 10.2.1 (#185)
* Bump fmt 9.1.0 to 10.2.1

* trigger CI

---------

Co-authored-by: Lars Melchior <lars.melchior@gmail.com>
2024-04-07 19:32:20 +02:00
Krishna Parmar
57d0b4dfc8
Update about.dox (#183) 2023-11-19 11:19:51 +00:00
Tobias Schmidl
776d4f36be
Added a download status (#171)
* bump the version of CPM to 0.38.1

* feature: added CPM download status

This is very useful in shaky network solutions. We want both a success
and a failure message, to determine if the download was successful.

* feature: compare CPM against a given checksum

This is more comprehensive than just comparing against an empty file.

* bump the version of Ccache.cmake to 1.2.4

* bump the version of StableCoder/cmake-scripts to 23.04

* update to use new get_cpm.cmake script

---------

Co-authored-by: Lars Melchior <lars.melchior@gmail.com>
2023-09-18 16:20:20 +02:00
Long Deng
f0b5bdb1f5
Fix inconsistent fmt version (#167)
fmt version is still 8.1.1 in `DEPENDENCIES` of `packageProject`, update it to 9.1.0
2023-03-05 14:06:43 +01:00
Lars Melchior
84ed75ca7d
Update CPM.cmake (#164) 2023-02-03 17:38:14 +00:00
5 changed files with 42 additions and 23 deletions

View file

@ -8,10 +8,14 @@ on:
env:
CPM_SOURCE_CACHE: ${{ github.workspace }}/cpm_modules
permissions:
contents: write
jobs:
build:
name: Build and publish documentation
runs-on: macos-latest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
@ -20,10 +24,14 @@ jobs:
path: "**/cpm_modules"
key: ${{ github.workflow }}-cpm-modules-${{ hashFiles('**/CMakeLists.txt', '**/*.cmake') }}
- name: Install dependencies
- name: Install python dependencies
run: |
brew install doxygen
pip3 install jinja2 Pygments
pip3 install jinja2==3.1.6 Pygments==2.19.1
- name: Install Doxygen
uses: ssciwr/doxygen-install@v1
with:
version: "1.13.2"
- name: Build
run: |
@ -31,7 +39,7 @@ jobs:
cmake --build build --target GenerateDocs
- name: Publish
uses: peaceiris/actions-gh-pages@v3
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build/doxygen/html

View file

@ -28,7 +28,7 @@ CPMAddPackage("gh:TheLartians/PackageProject.cmake@1.8.0")
CPMAddPackage(
NAME fmt
GIT_TAG 9.1.0
GIT_TAG 10.2.1
GITHUB_REPOSITORY fmtlib/fmt
OPTIONS "FMT_INSTALL YES" # create an installable target
)
@ -74,5 +74,5 @@ packageProject(
INCLUDE_DESTINATION include/${PROJECT_NAME}-${PROJECT_VERSION}
VERSION_HEADER "${VERSION_HEADER_LOCATION}"
COMPATIBILITY SameMajorVersion
DEPENDENCIES "fmt 8.1.1"
DEPENDENCIES "fmt 10.2.1"
)

View file

@ -1,8 +1,11 @@
set(CPM_DOWNLOAD_VERSION 0.35.0)
# SPDX-License-Identifier: MIT
#
# SPDX-FileCopyrightText: Copyright (c) 2019-2023 Lars Melchior and contributors
set(CPM_DOWNLOAD_VERSION 0.40.2)
set(CPM_HASH_SUM "c8cdc32c03816538ce22781ed72964dc864b2a34a310d3b7104812a5ca2d835d")
if(CPM_SOURCE_CACHE)
# Expand relative path. This is important if the provided path contains a tilde (~)
get_filename_component(CPM_SOURCE_CACHE ${CPM_SOURCE_CACHE} ABSOLUTE)
set(CPM_DOWNLOAD_LOCATION "${CPM_SOURCE_CACHE}/cpm/CPM_${CPM_DOWNLOAD_VERSION}.cmake")
elseif(DEFINED ENV{CPM_SOURCE_CACHE})
set(CPM_DOWNLOAD_LOCATION "$ENV{CPM_SOURCE_CACHE}/cpm/CPM_${CPM_DOWNLOAD_VERSION}.cmake")
@ -10,12 +13,12 @@ else()
set(CPM_DOWNLOAD_LOCATION "${CMAKE_BINARY_DIR}/cmake/CPM_${CPM_DOWNLOAD_VERSION}.cmake")
endif()
if(NOT (EXISTS ${CPM_DOWNLOAD_LOCATION}))
message(STATUS "Downloading CPM.cmake to ${CPM_DOWNLOAD_LOCATION}")
file(DOWNLOAD
https://github.com/cpm-cmake/CPM.cmake/releases/download/v${CPM_DOWNLOAD_VERSION}/CPM.cmake
${CPM_DOWNLOAD_LOCATION}
)
endif()
# Expand relative path. This is important if the provided path contains a tilde (~)
get_filename_component(CPM_DOWNLOAD_LOCATION ${CPM_DOWNLOAD_LOCATION} ABSOLUTE)
file(DOWNLOAD
https://github.com/cpm-cmake/CPM.cmake/releases/download/v${CPM_DOWNLOAD_VERSION}/CPM.cmake
${CPM_DOWNLOAD_LOCATION} EXPECTED_HASH SHA256=${CPM_HASH_SUM}
)
include(${CPM_DOWNLOAD_LOCATION})

View file

@ -11,7 +11,7 @@ include(${CMAKE_CURRENT_LIST_DIR}/CPM.cmake)
# enables sanitizers support using the the `USE_SANITIZER` flag available values are: Address,
# Memory, MemoryWithOrigins, Undefined, Thread, Leak, 'Address;Undefined'
if(USE_SANITIZER OR USE_STATIC_ANALYZER)
CPMAddPackage("gh:StableCoder/cmake-scripts#1f822d1fc87c8d7720c074cde8a278b44963c354")
CPMAddPackage("gh:StableCoder/cmake-scripts#24.04")
if(USE_SANITIZER)
include(${cmake-scripts_SOURCE_DIR}/sanitizers.cmake)
@ -54,13 +54,21 @@ if(USE_SANITIZER OR USE_STATIC_ANALYZER)
include(${cmake-scripts_SOURCE_DIR}/tools.cmake)
clang_tidy(${CLANG_TIDY_ARGS})
include_what_you_use(${IWYU_ARGS})
cppcheck(${CPPCHECK_ARGS})
if(${CLANG_TIDY})
clang_tidy(${CLANG_TIDY_ARGS})
endif()
if(${IWYU})
include_what_you_use(${IWYU_ARGS})
endif()
if(${CPPCHECK})
cppcheck(${CPPCHECK_ARGS})
endif()
endif()
endif()
# enables CCACHE support through the USE_CCACHE flag possible values are: YES, NO or equivalent
if(USE_CCACHE)
CPMAddPackage("gh:TheLartians/Ccache.cmake@1.2.3")
CPMAddPackage("gh:TheLartians/Ccache.cmake@1.2.4")
endif()

View file

@ -1,5 +1,5 @@
/** @page about About
@section doc ModernCppStarter Documentation
This is the auto-generated documentation for the initial project of the ModernCppStater.
This is the auto-generated documentation for the initial project of the ModernCppStarter.
It shows how we can use Doxygen to automatically build a browsable documentation for your projects.
*/