Explorar o código

Detect missing libuuid library

Suren A. Chilingaryan %!s(int64=8) %!d(string=hai) anos
pai
achega
8c11bf50e1
Modificáronse 1 ficheiros con 6 adicións e 1 borrados
  1. 6 1
      CMakeLists.txt

+ 6 - 1
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)