From e771cd9604aca7831495e2cb04592ae9ebc9eba8 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 17 Dec 2014 17:28:07 +0000 Subject: [PATCH] Add custom targets check and run-test. --- CMakeLists.txt | 4 ++++ contrib/siphash | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 33348ac6b..be81d3eeb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -21,6 +21,7 @@ IF(NOT RSPAMD_USER) ENDIF(NOT RSPAMD_USER) CMAKE_MINIMUM_REQUIRED(VERSION 2.6.0 FATAL_ERROR) +SET_PROPERTY(GLOBAL PROPERTY ALLOW_DUPLICATE_CUSTOM_TARGETS 1) ############################# OPTIONS SECTION ############################################# @@ -939,3 +940,6 @@ ADD_CUSTOM_TARGET(dist ${CMAKE_SOURCE_DIR}/dist.sh "${CMAKE_BINARY_DIR}/rspamd-${RSPAMD_VERSION}.tar.xz" COMMENT "Create source distribution" WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}) + +ADD_CUSTOM_TARGET(check DEPENDS rspamd-test) +ADD_CUSTOM_TARGET(run-test DEPENDS check COMMAND test/rspamd-test) \ No newline at end of file diff --git a/contrib/siphash b/contrib/siphash index 17e54301c..a2008b797 160000 --- a/contrib/siphash +++ b/contrib/siphash @@ -1 +1 @@ -Subproject commit 17e54301cb629d5711af0f85eec0b760efce4b52 +Subproject commit a2008b797d528768f849f7b7ab2ec4cde66cc1c2 -- 2.39.5