👷 enable cpr for non dev env builds

This commit is contained in:
Vladislav Nepogodin 2024-07-11 01:13:23 +04:00
parent 761a28148d
commit 4a6650b869
No known key found for this signature in database
GPG Key ID: B62C3D10C54D5DA9
2 changed files with 2 additions and 10 deletions

View File

@ -59,14 +59,12 @@ CPMAddPackage(
GIT_TAG ab1842a2dae061284c0a62dca1cc6d5e7e37e346
EXCLUDE_FROM_ALL YES
)
if(NOT ENABLE_DEVENV)
CPMAddPackage(
NAME cpr
GITHUB_REPOSITORY libcpr/cpr
GIT_TAG 923f83a5946f8d276be757d7808101aafc900dd6
EXCLUDE_FROM_ALL YES
)
endif()
CPMAddPackage(
NAME range-v3
GITHUB_REPOSITORY ericniebler/range-v3

View File

@ -65,10 +65,7 @@ ranges = dependency('range-v3', version : ['>=0.11.0'], fallback : ['range-v3',
ctre = dependency('ctre', version : ['>=3.8.0'], fallback : ['ctre', 'ctre_dep'])
tomlplusplus = dependency('tomlplusplus', version : ['>=3.4.0'], fallback : ['tomlplusplus', 'tomlplusplus_dep'], default_options: ['compile_library=false'])
#glibmm = dependency('glibmm-2.4', version : ['>=2.56.0'])
if not is_dev_environment
cpr = dependency('cpr', version : ['>=1.10.0'], fallback : ['cpr', 'cpr_dep'])
endif
cpr = dependency('cpr', version : ['>=1.10.0'], fallback : ['cpr', 'cpr_dep'])
src_files = files(
'src/view.hpp',
@ -164,10 +161,7 @@ endif
add_project_arguments(cc.get_supported_arguments(possible_cc_flags), language : 'cpp')
deps = [fmt, spdlog, ftxui, ranges, rapidjson, ctre, tomlplusplus]
if not is_dev_environment
deps += [cpr]
endif
deps = [fmt, spdlog, ftxui, ranges, rapidjson, ctre, tomlplusplus, cpr]
subdir('gucc')