Skip to content

Do not put location of macOS SDK in UUID_INCLUDE_DIRS on macOS #54

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 23, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions cmake/Modules/FindUUID.cmake
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
# Locate the include paths and libraries for the UUID libraries. On
# Windows this locates the Rpcrt4 library
# Windows this locates the Rpcrt4 library. On macOS uuid is provided
# by the the macOS SDK, so it is always indicated as found
#
# UUID_FOUND - was libuuid (Linux or OSX) or Rpcrt4 (Windows) found
# UUID_INCLUDE_DIRS - path to the UUID include files. On Windows this variable
# UUID_INCLUDE_DIRS - path to the UUID include files. On Windows and macOS this variable
# is left empty, but you should still add it to your CMakeLists.txt to ensure
# portability
# UUID_LIBRARIES - full path to the libraries
if(WIN32)
if(APPLE)
set(UUID_FOUND true)
set(UUID_INCLUDE_DIRS "")
set(UUID_LIBRARIES "")
elseif(WIN32)
find_library(UUID_LIBRARIES NAMES Rpcrt4 PATH)

if(UUID_LIBRARIES)
Expand Down