From 0cd45c6fb8d9095e16eb54415e2dc6f123506a4d Mon Sep 17 00:00:00 2001 From: zwhzzz0821 <2831474076@qq.com> Date: Sun, 15 Dec 2024 18:30:08 +0800 Subject: [PATCH] remove static crt --- cpp/src/CMakeLists.txt | 1 + cpp/third_party/antlr4-cpp-runtime-4/runtime/CMakeLists.txt | 1 + 2 files changed, 2 insertions(+) diff --git a/cpp/src/CMakeLists.txt b/cpp/src/CMakeLists.txt index e0e6ed8c7..847f41d8b 100644 --- a/cpp/src/CMakeLists.txt +++ b/cpp/src/CMakeLists.txt @@ -21,6 +21,7 @@ if (${COV_ENABLED}) add_compile_options(-fprofile-arcs -ftest-coverage) endif () add_definitions(-DANTLR4CPP_STATIC) +set(ANTLR4_WITH_STATIC_CRT OFF) add_subdirectory(parser) add_subdirectory(common) add_subdirectory(compress) diff --git a/cpp/third_party/antlr4-cpp-runtime-4/runtime/CMakeLists.txt b/cpp/third_party/antlr4-cpp-runtime-4/runtime/CMakeLists.txt index 83857a22f..a143befb0 100644 --- a/cpp/third_party/antlr4-cpp-runtime-4/runtime/CMakeLists.txt +++ b/cpp/third_party/antlr4-cpp-runtime-4/runtime/CMakeLists.txt @@ -21,6 +21,7 @@ file(GLOB libantlrcpp_SRC "${PROJECT_SOURCE_DIR}/runtime/src/tree/xpath/*.cpp" ) add_definitions(-DANTLR4CPP_STATIC) +set(ANTLR4_WITH_STATIC_CRT OFF) add_library(antlr4_shared SHARED ${libantlrcpp_SRC}) add_library(antlr4_static STATIC ${libantlrcpp_SRC}) set(LIB_OUTPUT_DIR ${CMAKE_BINARY_DIR}/lib) # put generated libraries here.