Skip to content
This repository was archived by the owner on May 31, 2025. It is now read-only.

Commit a1b0cb9

Browse files
authored
Do not put location of macOS SDK in UUID_INCLUDE_DIRS on macOS (#54)
1 parent 63e1cd9 commit a1b0cb9

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

cmake/Modules/FindUUID.cmake

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
# Locate the include paths and libraries for the UUID libraries. On
2-
# Windows this locates the Rpcrt4 library
2+
# Windows this locates the Rpcrt4 library. On macOS uuid is provided
3+
# by the the macOS SDK, so it is always indicated as found
34
#
45
# UUID_FOUND - was libuuid (Linux or OSX) or Rpcrt4 (Windows) found
5-
# UUID_INCLUDE_DIRS - path to the UUID include files. On Windows this variable
6+
# UUID_INCLUDE_DIRS - path to the UUID include files. On Windows and macOS this variable
67
# is left empty, but you should still add it to your CMakeLists.txt to ensure
78
# portability
89
# UUID_LIBRARIES - full path to the libraries
9-
if(WIN32)
10+
if(APPLE)
11+
set(UUID_FOUND true)
12+
set(UUID_INCLUDE_DIRS "")
13+
set(UUID_LIBRARIES "")
14+
elseif(WIN32)
1015
find_library(UUID_LIBRARIES NAMES Rpcrt4 PATH)
1116

1217
if(UUID_LIBRARIES)

0 commit comments

Comments
 (0)