From d8dce9605e8791b2df8187f3764aad3638cd75bb Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Thu, 5 Mar 2015 12:34:21 -0500 Subject: [PATCH] zynaddsubfx: just don't build if FLTK is not found rather than hard-failing. --- plugins/zynaddsubfx/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/zynaddsubfx/CMakeLists.txt b/plugins/zynaddsubfx/CMakeLists.txt index 9f751f38c..77569dd78 100644 --- a/plugins/zynaddsubfx/CMakeLists.txt +++ b/plugins/zynaddsubfx/CMakeLists.txt @@ -32,7 +32,11 @@ IF(MINGW_PREFIX) SET(FLTK_SKIP_FLUID TRUE) ENDIF() -FIND_PACKAGE(FLTK REQUIRED) +FIND_PACKAGE(FLTK) + +IF(NOT FLTK_FOUND) + RETURN() +ENDIF() IF(MINGW_PREFIX) SET(FLTK_FLUID_EXECUTABLE "${MINGW_PREFIX}/bin/fluid")