👷 build: update cpr depend and explicitly tell CTRE to use C++23 standard

This commit is contained in:
Vladislav Nepogodin 2024-07-25 01:40:19 +04:00
parent 10ff2eeb73
commit 2f49be8594
No known key found for this signature in database
GPG Key ID: B62C3D10C54D5DA9
3 changed files with 6 additions and 2 deletions

View File

@ -62,7 +62,7 @@ CPMAddPackage(
CPMAddPackage(
NAME cpr
GITHUB_REPOSITORY libcpr/cpr
GIT_TAG 923f83a5946f8d276be757d7808101aafc900dd6
GIT_TAG b5a21decc0cf25773fb5d742101da6b72639aa51
EXCLUDE_FROM_ALL YES
)
CPMAddPackage(

View File

@ -28,6 +28,10 @@ set(SPDLOG_FMT_EXTERNAL ON CACHE INTERNAL "" FORCE)
set(SPDLOG_DISABLE_DEFAULT_LOGGER ON CACHE INTERNAL "" FORCE)
set(SIMDJSON_DISABLE_DEPRECATED_API ON CACHE INTERNAL "" FORCE)
set(CPR_USE_SYSTEM_CURL ON CACHE INTERNAL "" FORCE)
# works only with libc++ so far
#set(CTRE_MODULE ON CACHE INTERNAL "" FORCE)
# for some reason CTRE doesnt respect CMAKE_CXX_STANDARD
set(CTRE_CXX_STANDARD 23 CACHE INTERNAL "" FORCE)
# Generate compile_commands.json to make it easier to work with clang based tools
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

View File

@ -1,6 +1,6 @@
[wrap-git]
url = https://github.com/libcpr/cpr.git
revision = 923f83a5946f8d276be757d7808101aafc900dd6
revision = b5a21decc0cf25773fb5d742101da6b72639aa51
patch_directory = cpr