Skip to content

Commit

Permalink
FindUUID: Support finding the library without pkg-config
Browse files Browse the repository at this point in the history
Signed-off-by: Silvio Traversaro <silvio.traversaro@iit.it>
  • Loading branch information
traversaro committed May 16, 2020
1 parent 4f1c31a commit d5be066
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion cmake/FindUUID.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,17 @@
# Find uuid
if (UNIX)
include(IgnPkgConfig)
ign_pkg_check_modules(UUID uuid)
ign_pkg_check_modules_quiet(UUID uuid)

if(NOT UUID_FOUND)
include(IgnManualSearch)
ign_manual_search(UUID
HEADER_NAMES "uuid/uuid.h"
LIBRARY_NAMES "uuid libuuid")
endif()

include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(
UUID
REQUIRED_VARS UUID_FOUND)
endif()

0 comments on commit d5be066

Please sign in to comment.