Skip to content

Commit

Permalink
meson: handle kissfft dependency if not installed in host system
Browse files Browse the repository at this point in the history
Just like 'uriparser' we need to disable an option in the cmake
subproject to not pull extra dependencies
  • Loading branch information
AdelKS committed Oct 4, 2024
1 parent 2b4154c commit d78ce57
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,6 @@ deps = [
dependency('glew'),
dependency('glfw3'),
dependency('glm'),
dependency('kissfft-float'),
dependency('libcrypto'),
dependency('libcurl'),
dependency('libmpg123'),
Expand Down Expand Up @@ -283,6 +282,17 @@ endif

deps += [uriparser_dep]

# Same: need to disable tests to not pull FFTW
kissfft_dep = dependency('kissfft-float', required: false)
if not kissfft_dep.found()
kissfft_opts = cmake.subproject_options()
kissfft_opts.add_cmake_defines({'KISSFFT_TEST': false})
kissfft_proj = cmake.subproject('kissfft', options: kissfft_opts)
kissfft_dep = kissfft_proj.dependency('kissfft')
endif

deps += [kissfft_dep]

lib = library('openFrameworks',
sources,
include_directories: inc,
Expand Down

0 comments on commit d78ce57

Please sign in to comment.