summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2017-02-21 09:20:22 +0100
committerJosé Bollo <jose.bollo@iot.bzh>2017-02-21 09:20:22 +0100
commitf83e7ca61af4c49d4f5f878973e508e18963c186 (patch)
tree0fac48c26db41dddd9de3247ed87ec8971d32e5b
parentc6c911a50ec61bef1ccd757ef9d8415a511751e0 (diff)
fix mimetype by using libmagic
Change-Id: I418b7f9323d4847dfef0f1f3f6dd90f6538b2ffb Signed-off-by: José Bollo <jose.bollo@iot.bzh>
-rw-r--r--src/CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 5dbd4cc3..e78d0323 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -36,6 +36,7 @@ IF(NOT HAVE_LIBMAGIC)
MESSAGE(FATAL_ERROR "\"magic.h\" or \"libmagic.so\" missing.
Please install the \"file-devel\" or \"libmagic-dev\" package !")
ENDIF(NOT HAVE_LIBMAGIC)
+ADD_COMPILE_OPTIONS(-DUSE_MAGIC_MIME_TYPE)
PKG_CHECK_MODULES(libsystemd REQUIRED libsystemd>=222)
PKG_CHECK_MODULES(libmicrohttpd REQUIRED libmicrohttpd>=0.9.48)