vcpkg/ports/antlr4/uuid_discovery_fix.patch
Akihisa Yagi 9f2bb70914
[antlr4] update to 4.8 (#14036)
* [antlr4] update to 4.8

* [antlr4] Add supports

* [antlr4] Regenerate patch files

* [antlr4] Remove spaces from patch files

Co-authored-by: wangli28 <wangli28@beyondsoft.com>
2020-10-17 02:01:36 -07:00

28 lines
721 B
Diff

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