Look for uuid/uuid.h instead of just uuid.h
Avoids a conflict between /usr/include/uuid.h and /usr/local/include/uuid/uuid.h on freebsd
This commit is contained in:
@@ -19,7 +19,7 @@ include(FindPkgConfig)
|
||||
pkg_check_modules(LIBUUID uuid)
|
||||
|
||||
if(NOT LIBUUID_FOUND)
|
||||
find_path(LIBUUID_INCLUDE_DIRS NAMES uuid.h
|
||||
find_path(LIBUUID_INCLUDE_DIRS NAMES uuid/uuid.h
|
||||
PATH_SUFFIXES uuid
|
||||
DOC "The libuuid include directory")
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
#include <set>
|
||||
|
||||
#include <stdio.h>
|
||||
#include <uuid.h>
|
||||
#include <uuid/uuid.h>
|
||||
|
||||
#include <cstdlib>
|
||||
#include <set>
|
||||
|
||||
Reference in New Issue
Block a user