summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher James Halse Rogers <raof@ubuntu.com>2018-09-18 09:37:35 +0200
committerRichard Hughes <richard@hughsie.com>2018-09-20 11:00:08 +0100
commit523c695d7640c6d9fa5fafd0e4994f7ad6cf57b4 (patch)
tree9cb46943a59ced3e65608754bfeef4db3a47735a
parent1b041e3205a0d5d99e414d647a8d8392769a5624 (diff)
downloadcolord-523c695d7640c6d9fa5fafd0e4994f7ad6cf57b4.tar.gz
Don't hard-require spotread to build argyll sensor.
The sensor can be built fine without it installed, and for packagers it is necessary to specify a manual dependency anyway.
-rw-r--r--meson.build5
1 files changed, 4 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index 8e1fa01..83e6b7d 100644
--- a/meson.build
+++ b/meson.build
@@ -160,7 +160,10 @@ if get_option('sane')
endif
if get_option('argyllcms_sensor')
- spotread = find_program('spotread')
+ spotread = find_program('spotread', required : false)
+ if spotread.found() == false
+ warning('spotread not found. Argyll sensor will not work unless argyll is installed')
+ endif
conf.set('HAVE_ARGYLLCMS_SENSOR', '1')
endif