diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2016-03-22 19:33:45 +0100 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2016-03-22 19:33:45 +0100 |
commit | 8c11bf50e1e3f0c02c840e138562d457ec6e02a2 (patch) | |
tree | 62ba47006ede75886eb195bd0cfcd6c7be58efb2 | |
parent | c45ab99e0a9b6e82f10aaedbfbc24b3e02f2a69f (diff) | |
parent | 7e421d26140062b00e0c134de561293e4480e127 (diff) | |
download | fastwriter-8c11bf50e1e3f0c02c840e138562d457ec6e02a2.tar.gz fastwriter-8c11bf50e1e3f0c02c840e138562d457ec6e02a2.tar.bz2 fastwriter-8c11bf50e1e3f0c02c840e138562d457ec6e02a2.tar.xz fastwriter-8c11bf50e1e3f0c02c840e138562d457ec6e02a2.zip |
Detect missing libuuid library
-rw-r--r-- | CMakeLists.txt | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 0b3e993..79bd891 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,7 +17,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) |