Skip to content

Commit 29e7b29

Browse files
committed
meson: kissfft subproject: disable building tests to not pull FFTW dep
Just like 'uriparser' we need to disable an option in the cmake subproject to not pull extra dependencies
1 parent 3e21715 commit 29e7b29

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

meson.build

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,6 @@ deps = [
222222
dependency('glew'),
223223
dependency('glfw3'),
224224
dependency('glm'),
225-
dependency('kissfft-float'),
226225
dependency('libcrypto'),
227226
dependency('libcurl'),
228227
dependency('libmpg123'),
@@ -283,6 +282,17 @@ endif
283282

284283
deps += [uriparser_dep]
285284

285+
# Same: need to disable tests to not pull FFTW
286+
kissfft_dep = dependency('kissfft-float', required: false)
287+
if not kissfft_dep.found()
288+
kissfft_opts = cmake.subproject_options()
289+
kissfft_opts.add_cmake_defines({'KISSFFT_TEST': false})
290+
kissfft_proj = cmake.subproject('kissfft', options: kissfft_opts)
291+
kissfft_dep = kissfft_proj.dependency('kissfft')
292+
endif
293+
294+
deps += [kissfft_dep]
295+
286296
lib = library('openFrameworks',
287297
sources,
288298
include_directories: inc,

0 commit comments

Comments
 (0)