Skip to content

Commit

Permalink
👷 build: update cpr depend and explicitly tell CTRE to use C++23 stan…
Browse files Browse the repository at this point in the history
…dard
  • Loading branch information
vnepogodin committed Jul 24, 2024
1 parent 10ff2ee commit 2f49be8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ CPMAddPackage(
CPMAddPackage(
NAME cpr
GITHUB_REPOSITORY libcpr/cpr
GIT_TAG 923f83a5946f8d276be757d7808101aafc900dd6
GIT_TAG b5a21decc0cf25773fb5d742101da6b72639aa51
EXCLUDE_FROM_ALL YES
)
CPMAddPackage(
Expand Down
4 changes: 4 additions & 0 deletions cmake/StandardProjectSettings.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion subprojects/cpr.wrap
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[wrap-git]
url = https://github.com/libcpr/cpr.git
revision = 923f83a5946f8d276be757d7808101aafc900dd6
revision = b5a21decc0cf25773fb5d742101da6b72639aa51

patch_directory = cpr

Expand Down

0 comments on commit 2f49be8

Please sign in to comment.