aboutsummaryrefslogtreecommitdiff
path: root/ports/antlr4/uuid_discovery_fix.patch
blob: 818a9307be9f45b414c99a406df990824a947528 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
diff -urN a/CMakeLists.txt b/CMakeLists.txt
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -40,8 +40,10 @@
 endif()

 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)
diff -urN a/runtime/src/support/guid.cpp b/runtime/src/support/guid.cpp
--- a/runtime/src/support/guid.cpp
+++ b/runtime/src/support/guid.cpp
@@ -22,6 +22,7 @@
  THE SOFTWARE.
  */

+#include "antlr4-common.h"
 #include "guid.h"

 #ifdef GUID_LIBUUID