--- qsampler/trunk/CMakeLists.txt 2019/11/13 19:46:13 3640 +++ qsampler/trunk/CMakeLists.txt 2019/11/15 19:46:23 3641 @@ -109,8 +109,8 @@ # Check for LSCP libraries. pkg_check_modules (LSCP REQUIRED lscp) -set (CONFIG_LIBLSCP ${LSCP_FOUND}) -if (CONFIG_LIBLSCP) +if (LSCP_FOUND) + set (CONFIG_LIBLSCP 1) include_directories (${LSCP_INCLUDE_DIRS}) link_directories (${LSCP_LIBRARY_DIRS}) # link_libraries (${LSCP_LIBRARIES}) @@ -177,13 +177,13 @@ check_function_exists (lscp_get_voices CONFIG_MAX_VOICES) else () message (FATAL_ERROR "*** LSCP library not found.") + set (CONFIG_LIBLSCP 0) endif () # Check for GIG libraries. if (CONFIG_LIBGIG) pkg_check_modules (GIG gig>=3.3.0) - set (CONFIG_LIBGIG ${GIG_FOUND}) - if (CONFIG_LIBGIG) + if (GIG_FOUND) include_directories (${GIG_INCLUDE_DIRS}) link_directories (${GIG_LIBRARY_DIRS}) link_libraries (${GIG_LIBRARIES}) @@ -199,6 +199,7 @@ endif () else () message (WARNING "*** GIG library not found.") + set (CONFIG_LIBGIG 0) endif () endif ()