mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
CMakeLists.txt: find uuid functions on OpenBSD
OpenBSD also includes uuid functions directly in its libc, same as FreeBSD. Signed-off-by: Kent R. Spillner <kspillner@acm.org>
This commit is contained in:
parent
097a87a371
commit
8337f78efe
1 changed files with 3 additions and 3 deletions
|
@ -135,10 +135,10 @@ check_struct_has_member ("struct tm" tm_gmtoff time.h HAVE_TM_GMTOFF)
|
||||||
check_struct_has_member ("struct stat" st_birthtime "sys/types.h;sys/stat.h" HAVE_ST_BIRTHTIME)
|
check_struct_has_member ("struct stat" st_birthtime "sys/types.h;sys/stat.h" HAVE_ST_BIRTHTIME)
|
||||||
|
|
||||||
message ("-- Looking for libuuid")
|
message ("-- Looking for libuuid")
|
||||||
if (DARWIN OR FREEBSD)
|
if (DARWIN OR FREEBSD OR OPENBSD)
|
||||||
# Apple and FreeBSD include the uuid functions in their libc, rather than libuuid
|
# Apple and FreeBSD include the uuid functions in their libc, rather than libuuid
|
||||||
check_function_exists (uuid_unparse_lower HAVE_UUID_UNPARSE_LOWER)
|
check_function_exists (uuid_unparse_lower HAVE_UUID_UNPARSE_LOWER)
|
||||||
else (DARWIN OR FREEBSD)
|
else (DARWIN OR FREEBSD OR OPENBSD)
|
||||||
find_path (UUID_INCLUDE_DIR uuid/uuid.h)
|
find_path (UUID_INCLUDE_DIR uuid/uuid.h)
|
||||||
find_library (UUID_LIBRARY NAMES uuid)
|
find_library (UUID_LIBRARY NAMES uuid)
|
||||||
if (UUID_INCLUDE_DIR AND UUID_LIBRARY)
|
if (UUID_INCLUDE_DIR AND UUID_LIBRARY)
|
||||||
|
@ -151,7 +151,7 @@ else (DARWIN OR FREEBSD)
|
||||||
else (UUID_INCLUDE_DIR AND UUID_LIBRARY)
|
else (UUID_INCLUDE_DIR AND UUID_LIBRARY)
|
||||||
message (FATAL_ERROR "-- libuuid not found.")
|
message (FATAL_ERROR "-- libuuid not found.")
|
||||||
endif (UUID_INCLUDE_DIR AND UUID_LIBRARY)
|
endif (UUID_INCLUDE_DIR AND UUID_LIBRARY)
|
||||||
endif (DARWIN OR FREEBSD)
|
endif (DARWIN OR FREEBSD OR OPENBSD)
|
||||||
|
|
||||||
if (HAVE_UUID_UNPARSE_LOWER)
|
if (HAVE_UUID_UNPARSE_LOWER)
|
||||||
message ("-- Found libuuid")
|
message ("-- Found libuuid")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue