diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-01-14 14:03:19 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-01-14 14:03:19 +0000 |
commit | 7de0d515d16928d6dbdaa3965a54626f4b38d815 (patch) | |
tree | 065a1ae8a2ee98d67e084779286114cfad30bd7c /src/CMakeLists.txt | |
parent | 51781c159f926e95364070ba462a6186ac4d2d32 (diff) | |
download | rspamd-7de0d515d16928d6dbdaa3965a54626f4b38d815.tar.gz rspamd-7de0d515d16928d6dbdaa3965a54626f4b38d815.zip |
[Rework] Require proper C++ environment for Rspamd build
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r-- | src/CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
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 () |