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,