From eccb8fead79a4402e7a55846fd69451462272fab Mon Sep 17 00:00:00 2001 From: wzlsuccess Date: Tue, 1 Jun 2021 14:57:42 +0800 Subject: [PATCH] add -no-rtti for kafka --- src/client/CMakeLists.txt | 1 + src/factory/CMakeLists.txt | 1 + src/protocol/CMakeLists.txt | 1 + 3 files changed, 3 insertions(+) diff --git a/src/client/CMakeLists.txt b/src/client/CMakeLists.txt index 3785e976..a1766d67 100644 --- a/src/client/CMakeLists.txt +++ b/src/client/CMakeLists.txt @@ -12,4 +12,5 @@ if (KAFKA STREQUAL "y") WFKafkaClient.cc ) add_library("client_kafka" OBJECT ${SRC}) + SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-rtti") endif () diff --git a/src/factory/CMakeLists.txt b/src/factory/CMakeLists.txt index 24689fa6..402ecac4 100644 --- a/src/factory/CMakeLists.txt +++ b/src/factory/CMakeLists.txt @@ -17,5 +17,6 @@ if (KAFKA STREQUAL "y") KafkaTaskImpl.cc ) add_library("factory_kafka" OBJECT ${SRC}) + SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-rtti") endif () diff --git a/src/protocol/CMakeLists.txt b/src/protocol/CMakeLists.txt index a476c510..87226a66 100644 --- a/src/protocol/CMakeLists.txt +++ b/src/protocol/CMakeLists.txt @@ -25,5 +25,6 @@ if (KAFKA STREQUAL "y") KafkaResult.cc ) add_library("protocol_kafka" OBJECT ${SRC}) + SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-rtti") endif ()