mirror of
https://github.com/CachyOS/New-Cli-Installer.git
synced 2025-01-23 05:52:23 +08:00
👷 build: update cpr depend and explicitly tell CTRE to use C++23 standard
This commit is contained in:
parent
10ff2eeb73
commit
2f49be8594
@ -62,7 +62,7 @@ CPMAddPackage(
|
|||||||
CPMAddPackage(
|
CPMAddPackage(
|
||||||
NAME cpr
|
NAME cpr
|
||||||
GITHUB_REPOSITORY libcpr/cpr
|
GITHUB_REPOSITORY libcpr/cpr
|
||||||
GIT_TAG 923f83a5946f8d276be757d7808101aafc900dd6
|
GIT_TAG b5a21decc0cf25773fb5d742101da6b72639aa51
|
||||||
EXCLUDE_FROM_ALL YES
|
EXCLUDE_FROM_ALL YES
|
||||||
)
|
)
|
||||||
CPMAddPackage(
|
CPMAddPackage(
|
||||||
|
@ -28,6 +28,10 @@ set(SPDLOG_FMT_EXTERNAL ON CACHE INTERNAL "" FORCE)
|
|||||||
set(SPDLOG_DISABLE_DEFAULT_LOGGER ON CACHE INTERNAL "" FORCE)
|
set(SPDLOG_DISABLE_DEFAULT_LOGGER ON CACHE INTERNAL "" FORCE)
|
||||||
set(SIMDJSON_DISABLE_DEPRECATED_API ON CACHE INTERNAL "" FORCE)
|
set(SIMDJSON_DISABLE_DEPRECATED_API ON CACHE INTERNAL "" FORCE)
|
||||||
set(CPR_USE_SYSTEM_CURL 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
|
# Generate compile_commands.json to make it easier to work with clang based tools
|
||||||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[wrap-git]
|
[wrap-git]
|
||||||
url = https://github.com/libcpr/cpr.git
|
url = https://github.com/libcpr/cpr.git
|
||||||
revision = 923f83a5946f8d276be757d7808101aafc900dd6
|
revision = b5a21decc0cf25773fb5d742101da6b72639aa51
|
||||||
|
|
||||||
patch_directory = cpr
|
patch_directory = cpr
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user