From d78ce5775b015481a5f392918149466a3f947312 Mon Sep 17 00:00:00 2001 From: Adel KARA SLIMANE Date: Fri, 4 Oct 2024 13:07:22 +0200 Subject: [PATCH] meson: handle kissfft dependency if not installed in host system Just like 'uriparser' we need to disable an option in the cmake subproject to not pull extra dependencies --- meson.build | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 959038e1bed..8dd9f399d31 100644 --- a/meson.build +++ b/meson.build @@ -223,7 +223,6 @@ deps = [ dependency('glew'), dependency('glfw3'), dependency('glm'), - dependency('kissfft-float'), dependency('libcrypto'), dependency('libcurl'), dependency('libmpg123'), @@ -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,