Skip to content

Commit

Permalink
SearchForStuff: On Apple platforms do not search for uuid library (#2878
Browse files Browse the repository at this point in the history
  • Loading branch information
traversaro authored Nov 24, 2020
1 parent c2cf55a commit b0dfa18
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cmake/SearchForStuff.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -700,9 +700,10 @@ endif()

########################################
# Find uuid
# - In UNIX we use uuid library.
# - In UNIX if not APPLE we use uuid library.
# - On APPLE we use the uuid library provided by the OS's SDK.
# - In Windows the native RPC call, no dependency needed.
if (UNIX)
if (UNIX AND NOT APPLE)
pkg_check_modules(uuid uuid)
if (uuid_FOUND)
message (STATUS "Looking for uuid - found")
Expand All @@ -711,6 +712,9 @@ if (UNIX)
set (HAVE_UUID FALSE)
BUILD_WARNING ("uuid-dev library not found - Gazebo will not have uuid support.")
endif ()
elseif(APPLE)
message (STATUS "Using macOS-provided uuid library")
set (HAVE_UUID TRUE)
else()
message (STATUS "Using Windows RPC UuidCreate function")
set (HAVE_UUID TRUE)
Expand Down

0 comments on commit b0dfa18

Please sign in to comment.