-
Notifications
You must be signed in to change notification settings - Fork 6.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ignition-transport4,9] use system libuuid (#22998)
- Loading branch information
1 parent
bd8a0df
commit 5f6425e
Showing
9 changed files
with
76 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index 5453cd0..10c2ad4 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -58,6 +58,8 @@ ign_find_package(CPPZMQ REQUIRED PRIVATE | ||
# Find uuid | ||
if (MSVC) | ||
message (STATUS "UUID: Using Windows RPC UuidCreate function\n") | ||
+elseif (APPLE) | ||
+ message (STATUS "Use system uuid header") | ||
else() | ||
ign_find_package(UUID REQUIRED) | ||
endif() | ||
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt | ||
index 6683e64..33669ab 100644 | ||
--- a/src/CMakeLists.txt | ||
+++ b/src/CMakeLists.txt | ||
@@ -18,7 +18,7 @@ target_link_libraries(${PROJECT_LIBRARY_TARGET_NAME} | ||
) | ||
|
||
# Windows system library provides UUID | ||
-if (NOT MSVC) | ||
+if (NOT MSVC AND NOT APPLE) | ||
target_link_libraries(${PROJECT_LIBRARY_TARGET_NAME} | ||
PUBLIC | ||
UUID::UUID |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index 084b6da..6fd212d 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -70,6 +70,8 @@ ign_find_package(CPPZMQ REQUIRED PRIVATE | ||
# Find uuid | ||
if (MSVC) | ||
message (STATUS "UUID: Using Windows RPC UuidCreate function\n") | ||
+elseif (APPLE) | ||
+ message (STATUS "Use system uuid header") | ||
else() | ||
ign_find_package(UUID REQUIRED) | ||
endif() | ||
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt | ||
index 9777240..9e860a9 100644 | ||
--- a/src/CMakeLists.txt | ||
+++ b/src/CMakeLists.txt | ||
@@ -31,7 +31,7 @@ target_link_libraries(${PROJECT_LIBRARY_TARGET_NAME} | ||
) | ||
|
||
# Windows system library provides UUID | ||
-if (NOT MSVC) | ||
+if (NOT MSVC AND NOT APPLE) | ||
target_link_libraries(${PROJECT_LIBRARY_TARGET_NAME} | ||
PUBLIC | ||
UUID::UUID |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters