From aa674e4e4724e917b822935e1b64a07d5fe7fe06 Mon Sep 17 00:00:00 2001 From: Matthew Barr Date: Fri, 30 Oct 2015 11:14:32 +1100 Subject: [PATCH] unit: Don't run unit-internal in release build --- unit/CMakeLists.txt | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/unit/CMakeLists.txt b/unit/CMakeLists.txt index 21416a25..9bc74e23 100644 --- a/unit/CMakeLists.txt +++ b/unit/CMakeLists.txt @@ -112,6 +112,7 @@ endif() # # build target to run unit tests # +if (NOT RELEASE_BUILD) add_custom_target( unit COMMAND bin/unit-internal @@ -119,3 +120,11 @@ add_custom_target( WORKING_DIRECTORY ${CMAKE_BINARY_DIR} DEPENDS unit-internal unit-hyperscan ) +else () +add_custom_target( + unit + COMMAND bin/unit-hyperscan + WORKING_DIRECTORY ${CMAKE_BINARY_DIR} + DEPENDS unit-hyperscan +) +endif()