Skip to content

Commit 1c401a5

Browse files
fix finduuid for macOS
This partially reverts commit 52b2210.
1 parent 3ecb3c7 commit 1c401a5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

cmake/FindUUID.cmake

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,13 @@
1313
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
1414
#
1515

16+
if (APPLE)
17+
include(CheckSymbolExists)
18+
# On mac, it can't find uuid library
19+
# So, just check for the functions with the default include
20+
CHECK_SYMBOL_EXISTS("uuid_generate" "uuid/uuid.h" UUID_SYMBOL)
21+
endif (APPLE)
22+
1623
if (UUID_SYMBOL)
1724
set(UUID_FOUND TRUE)
1825
elseif (UUID_LIBRARIES AND UUID_INCLUDE_DIRS)

0 commit comments

Comments
 (0)