mirror of
https://gitlab.com/samplehive/sample-hive.git
synced 2026-10-17 10:24:11 +02:00
Only clone libsndfile and spdlog if not available on system
This commit is contained in:
+10
-7
@@ -263,16 +263,19 @@ if not yaml.found()
|
|||||||
yaml = yaml_subproject.dependency('yaml-cpp')
|
yaml = yaml_subproject.dependency('yaml-cpp')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
snd_subproject = cmake.subproject('libsndfile', options: snd_opts)
|
snd = dependency('sndfile', version: '>=1.2.0', required: false)
|
||||||
snd = snd_subproject.dependency('sndfile')
|
|
||||||
|
|
||||||
|
if not snd.found()
|
||||||
|
snd_subproject = cmake.subproject('libsndfile', options: snd_opts)
|
||||||
|
snd = snd_subproject.dependency('sndfile')
|
||||||
|
endif
|
||||||
|
|
||||||
spdlog_subproject = subproject('spdlog',
|
spdlog = dependency('spdlog', version: '>=1.12.0', required: false)
|
||||||
default_options: [
|
|
||||||
'default_library=static',
|
|
||||||
'compile_library=true',])
|
|
||||||
|
|
||||||
spdlog = spdlog_subproject.get_variable('spdlog_dep')
|
if not spdlog.found()
|
||||||
|
spdlog_subproject = cmake.subproject('spdlog', options: spdlog_opts)
|
||||||
|
spdlog = spdlog_subproject.dependency('spdlog')
|
||||||
|
endif
|
||||||
|
|
||||||
aubio = dependency('aubio', version: '>=0.4.9', required: false)
|
aubio = dependency('aubio', version: '>=0.4.9', required: false)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user