From 90eaf640eff3513a52e374b36af79f4c602c785c Mon Sep 17 00:00:00 2001 From: Bryan Tan Date: Thu, 14 Jul 2022 00:15:52 -0700 Subject: [PATCH] Remove libuuid dependency from C++ runtime libuuid and its headers are not referenced anywhere, so remove it. Signed-off-by: Bryan Tan Signed-off-by: Eric Vergnaud --- runtime/Cpp/CMakeLists.txt | 4 ---- runtime/Cpp/runtime/CMakeLists.txt | 5 +---- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/runtime/Cpp/CMakeLists.txt b/runtime/Cpp/CMakeLists.txt index 4f721f13fb..df621b11de 100644 --- a/runtime/Cpp/CMakeLists.txt +++ b/runtime/Cpp/CMakeLists.txt @@ -50,10 +50,6 @@ if(CMAKE_VERSION VERSION_EQUAL "3.3.0" OR CMAKE_POLICY(SET CMP0054 OLD) endif() -if(CMAKE_SYSTEM_NAME MATCHES "Linux") - find_package(PkgConfig REQUIRED) - pkg_check_modules(UUID REQUIRED uuid) -endif() if(APPLE) find_library(COREFOUNDATION_LIBRARY CoreFoundation) endif() diff --git a/runtime/Cpp/runtime/CMakeLists.txt b/runtime/Cpp/runtime/CMakeLists.txt index bc487e1308..47497d566e 100644 --- a/runtime/Cpp/runtime/CMakeLists.txt +++ b/runtime/Cpp/runtime/CMakeLists.txt @@ -62,10 +62,7 @@ if (ANTLR_BUILD_CPP_TESTS) gtest_discover_tests(antlr4_tests) endif() -if(CMAKE_SYSTEM_NAME MATCHES "Linux") - target_link_libraries(antlr4_shared ${UUID_LIBRARIES}) - target_link_libraries(antlr4_static ${UUID_LIBRARIES}) -elseif(APPLE) +if(APPLE) target_link_libraries(antlr4_shared ${COREFOUNDATION_LIBRARY}) target_link_libraries(antlr4_static ${COREFOUNDATION_LIBRARY}) endif()