# HG changeset patch # User Sebastien Jodogne # Date 1554385897 -7200 # Node ID 9c8e119d0c5b48a4b23872d6295399938d07979b # Parent 01905b67f8b5f27cebf04b8c33f23216f975bec7 fix detection of uuid on freebsd diff -r 01905b67f8b5 -r 9c8e119d0c5b Resources/CMake/UuidConfiguration.cmake --- a/Resources/CMake/UuidConfiguration.cmake Thu Apr 04 15:14:12 2019 +0200 +++ b/Resources/CMake/UuidConfiguration.cmake Thu Apr 04 15:51:37 2019 +0200 @@ -114,12 +114,18 @@ message(FATAL_ERROR "Please install uuid-dev, e2fsprogs (OpenBSD) or e2fsprogs-libuuid (FreeBSD)") endif() - check_library_exists(uuid uuid_generate_random "" HAVE_UUID_LIB) - if (NOT HAVE_UUID_LIB) + find_library(LIBUUID uuid + PATHS + /usr/lib + /usr/local/lib + ) + + check_library_exists(${LIBUUID} uuid_generate_random "" HAVE_LIBUUID) + if (NOT HAVE_LIBUUID) message(FATAL_ERROR "Unable to find the uuid library") endif() - link_libraries(uuid) + link_libraries(${LIBUUID}) endif() endif()