commit ab0f47f: [Minor] Attach PVS analyze target

Vsevolod Stakhov vsevolod at highsecure.ru
Wed Mar 13 15:07:03 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-03-13 14:58:59 +0000
URL: https://github.com/rspamd/rspamd/commit/ab0f47f4efc84898a3fb18b7990ae719b0c7884e

[Minor] Attach PVS analyze target

---
 CMakeLists.txt     | 8 ++++++++
 src/CMakeLists.txt | 2 +-
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index c01bba2d5..32a796276 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1411,3 +1411,11 @@ IF(NOT DEBIAN_BUILD)
 	ADD_CUSTOM_TARGET(check DEPENDS rspamd-test)
 	ADD_CUSTOM_TARGET(run-test DEPENDS check COMMAND test/rspamd-test)
 ENDIF(NOT DEBIAN_BUILD)
+
+
+# PVS Studio
+include(${CMAKE_SOURCE_DIR}/PVS-Studio.cmake)
+pvs_studio_add_target(TARGET ${PROJECT_NAME}.analyze ALL
+		ANALYZE ${PROJECT_NAME} rspamd-server rspamadm rspamc
+		OUTPUT FORMAT errorfile
+		LOG target_${PROJECT_NAME}.err)
\ No newline at end of file
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 256feb522..22d28e770 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -222,4 +222,4 @@ ENDIF(NOT DEBIAN_BUILD)
 TARGET_LINK_LIBRARIES(rspamd rspamd-server)
 
 INSTALL(TARGETS rspamd RUNTIME DESTINATION bin)
-INSTALL(TARGETS rspamd-server LIBRARY DESTINATION ${RSPAMD_LIBDIR})
+INSTALL(TARGETS rspamd-server LIBRARY DESTINATION ${RSPAMD_LIBDIR})
\ No newline at end of file


More information about the Commits mailing list