2020-10-17 18:01:36 +09:00
|
|
|
diff -urN a/CMakeLists.txt b/CMakeLists.txt
|
2019-03-08 22:09:33 -08:00
|
|
|
--- a/CMakeLists.txt
|
|
|
|
+++ b/CMakeLists.txt
|
2020-10-17 18:01:36 +09:00
|
|
|
@@ -40,8 +40,10 @@
|
2019-03-08 22:09:33 -08:00
|
|
|
endif()
|
2020-10-17 18:01:36 +09:00
|
|
|
|
2019-03-08 22:09:33 -08:00
|
|
|
if(CMAKE_SYSTEM_NAME MATCHES "Linux")
|
|
|
|
- find_package(PkgConfig REQUIRED)
|
|
|
|
- pkg_check_modules(UUID REQUIRED uuid)
|
|
|
|
+ find_path(UUID_INCLUDE_DIR uuid/uuid.h)
|
|
|
|
+ find_library(UUID_LIBRARY NAMES uuid)
|
|
|
|
+ include_directories(${UUID_INCLUDE_DIR})
|
|
|
|
+ link_libraries(${UUID_LIBRARY})
|
|
|
|
endif()
|
|
|
|
if(APPLE)
|
|
|
|
find_library(COREFOUNDATION_LIBRARY CoreFoundation)
|
2020-10-17 18:01:36 +09:00
|
|
|
diff -urN a/runtime/src/support/guid.cpp b/runtime/src/support/guid.cpp
|
2019-03-08 22:09:33 -08:00
|
|
|
--- a/runtime/src/support/guid.cpp
|
|
|
|
+++ b/runtime/src/support/guid.cpp
|
2020-10-17 18:01:36 +09:00
|
|
|
@@ -22,6 +22,7 @@
|
2019-03-08 22:09:33 -08:00
|
|
|
THE SOFTWARE.
|
|
|
|
*/
|
2020-10-17 18:01:36 +09:00
|
|
|
|
2019-03-08 22:09:33 -08:00
|
|
|
+#include "antlr4-common.h"
|
|
|
|
#include "guid.h"
|
2020-10-17 18:01:36 +09:00
|
|
|
|
2019-03-08 22:09:33 -08:00
|
|
|
#ifdef GUID_LIBUUID
|
|
|
|
|