vcpkg/ports/antlr4/uuid_discovery_fix.patch
LilyWangLL c168ce4e76
[antlr4] Update to 4.10.1 (#25416)
* [antlr4] Update to 4.10.1

* x-add-version

* update portfile.cmake

* x-add-version

Co-authored-by: LilyWangLL <v-lilywang@microsoft.com>
2022-06-24 15:11:33 -07:00

17 lines
512 B
Diff

diff -urN a/CMakeLists.txt b/CMakeLists.txt
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -42,8 +42,10 @@ if(CMAKE_VERSION VERSION_EQUAL "3.3.0" OR
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)