summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2013-07-15 15:35:30 +0200
committerSuren A. Chilingaryan <csa@suren.me>2013-07-15 15:35:30 +0200
commit7e421d26140062b00e0c134de561293e4480e127 (patch)
tree0d6a8938011fe3cfab4102b7e5475325014b9edd
parent9742a733bb8b06d26c90f2ccb330366d0ab1ae9e (diff)
downloadfastwriter-7e421d26140062b00e0c134de561293e4480e127.tar.gz
fastwriter-7e421d26140062b00e0c134de561293e4480e127.tar.bz2
fastwriter-7e421d26140062b00e0c134de561293e4480e127.tar.xz
fastwriter-7e421d26140062b00e0c134de561293e4480e127.zip
Detect missing libuuid library
-rw-r--r--CMakeLists.txt7
1 files changed, 6 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7a95a93..81c6c40 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -14,7 +14,12 @@ check_include_files("linux/falloc.h" HAVE_LINUX_FALLOC_H)
if (NOT DISABLE_XFS_REALTIME)
check_include_files("xfs/xfs.h" HAVE_XFS_H)
if (NOT HAVE_XFS_H)
- message(FATAL_ERROR "error: xfs/xfs.h is not found...")
+ check_include_files("uuid/uuid.h" HAVE_UUID_H)
+ if (HAVE_UUID_H)
+ message(FATAL_ERROR "error: xfs/xfs.h is not found...")
+ else (HAVE_UUID_H)
+ message(FATAL_ERROR "error: uuid/uuid.h is not found...")
+ endif (HAVE_UUID_H)
endif (NOT HAVE_XFS_H)
endif (NOT DISABLE_XFS_REALTIME)