meson: Fix build setup wihtout lcms
authorJan Vesely <jan.vesely@rutgers.edu>
Thu, 6 Dec 2018 22:08:32 +0000 (17:08 -0500)
committerJan Vesely <jan.vesely@rutgers.edu>
Thu, 6 Dec 2018 22:08:50 +0000 (17:08 -0500)
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
meson.build

index f617f158c440f87f643a7d012cd85c1c6f1b42c4..21958b41c3f08cf9995381d9ab3e3c8a1af0a645 100644 (file)
@@ -274,6 +274,8 @@ if with_lcms
   if lcms.found()
     conf.set('HAVE_LCMS', 1, description: 'Define to 1 if liblcms2 is available')
   endif
+else
+  lcms = dependency('', required : false)
 endif
 
 math = cc.find_library('m',   required: false)