Unverified Commit 8ee65f82 authored by Aaron Jheng's avatar Aaron Jheng
Browse files

antlr4_11.runtime.cpp: fix build

parent e6201c94
Loading
Loading
Loading
Loading
+20 −0
Original line number Diff line number Diff line
diff --git a/runtime/Cpp/CMakeLists.txt b/runtime/Cpp/CMakeLists.txt
index df621b11d..c20b92170 100644
--- a/runtime/Cpp/CMakeLists.txt
+++ b/runtime/Cpp/CMakeLists.txt
@@ -39,15 +39,10 @@ project(LIBANTLR4)
 if(CMAKE_VERSION VERSION_EQUAL "3.0.0" OR
    CMAKE_VERSION VERSION_GREATER "3.0.0")
   CMAKE_POLICY(SET CMP0026 NEW)
-  CMAKE_POLICY(SET CMP0054 OLD)
-  CMAKE_POLICY(SET CMP0045 OLD)
-  CMAKE_POLICY(SET CMP0042 OLD)
 endif()
 
 if(CMAKE_VERSION VERSION_EQUAL "3.3.0" OR
    CMAKE_VERSION VERSION_GREATER "3.3.0")
-  CMAKE_POLICY(SET CMP0059 OLD)
-  CMAKE_POLICY(SET CMP0054 OLD)
 endif()
 
 if(APPLE)
+3 −0
Original line number Diff line number Diff line
@@ -172,6 +172,9 @@ in
        # not available in a sandboxed build.
        (lib.cmakeBool "ANTLR_BUILD_CPP_TESTS" false)
      ];
      extraPatches = [
        ./4.11.runtime.cpp.cmake.patch
      ];
    }).antlr;

  antlr4_10 =