aboutsummaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-11-15 11:58:43 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-11-15 11:58:43 +0000
commitc15ca59b25403a3d6a3d9383f2dabf4b8d419876 (patch)
treed39c367b205dfb9c033ba4692c9af2a790db587c /CMakeLists.txt
parent526c3aedfcc17353fab76dfd3a4f393264b3bc2f (diff)
downloadrspamd-c15ca59b25403a3d6a3d9383f2dabf4b8d419876.tar.gz
rspamd-c15ca59b25403a3d6a3d9383f2dabf4b8d419876.zip
[Rework] Move cmake modules to a dedicated path
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt7
1 files changed, 4 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c6b446cac..58d0daa87 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -26,6 +26,7 @@ PROJECT(rspamd VERSION "${RSPAMD_VERSION}" LANGUAGES C ASM)
# This is supported merely with cmake 3.1
SET(CMAKE_C_STANDARD 11)
SET(CMAKE_C_STANDARD_REQUIRED ON)
+LIST(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/")
SET(RSPAMD_MASTER_SITE_URL "https://rspamd.com")
@@ -64,10 +65,10 @@ OPTION(ENABLE_LUA_REPL "Enables Lua repl (requires C++11 compiler) [default:
OPTION(ENABLE_BLAS "Enables libopenblas support [default: OFF]" OFF)
-INCLUDE(FindArch.cmake)
+INCLUDE(FindArch)
TARGET_ARCHITECTURE(ARCH)
-INCLUDE(FindRagel.cmake)
+INCLUDE(FindRagel)
IF(NOT RAGEL_FOUND)
MESSAGE(FATAL_ERROR "Ragel is required to build rspamd")
ENDIF()
@@ -1357,7 +1358,7 @@ ENDIF(NOT DEBIAN_BUILD)
find_program(_PVS_STUDIO "pvs-studio-analyzer")
if(_PVS_STUDIO)
- include(${CMAKE_SOURCE_DIR}/PVS-Studio.cmake)
+ include(PVS-Studio)
pvs_studio_add_target(TARGET ${PROJECT_NAME}.analyze
ANALYZE ${PROJECT_NAME} rspamd-server rspamadm rspamc
OUTPUT FORMAT errorfile