mirror of
https://github.com/CachyOS/New-Cli-Installer.git
synced 2025-01-23 14:32:22 +08:00
👷 enable cpr for non dev env builds
This commit is contained in:
parent
761a28148d
commit
4a6650b869
@ -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
|
||||
|
10
meson.build
10
meson.build
@ -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')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user