From 7de0d515d16928d6dbdaa3965a54626f4b38d815 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 14 Jan 2021 14:03:19 +0000 Subject: [Rework] Require proper C++ environment for Rspamd build --- src/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/CMakeLists.txt') diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 9a34d2ac4..7285d8e7b 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -68,12 +68,16 @@ IF (ENABLE_CLANG_PLUGIN MATCHES "ON") FOREACH(_lib ${CLANG_EXTRA_PLUGINS_LIBS}) SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Xclang -load -Xclang ${_lib}") + SET(CMAKE_CXX_FLAGS + "${CMAKE_CXX_FLAGS} -Xclang -load -Xclang ${_lib}") ENDFOREACH() ENDIF() IF(CLANG_EXTRA_PLUGINS) FOREACH(_plug ${CLANG_EXTRA_PLUGINS}) SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Xclang -add-plugin -Xclang ${_plug}") + SET(CMAKE_CXX_FLAGS + "${CMAKE_C_FLAGS} -Xclang -add-plugin -Xclang ${_plug}") ENDFOREACH() ENDIF() ENDIF () -- cgit v1.2.3