From 695d8a01a9052f7638ac07b14071ab41f4146c0c Mon Sep 17 00:00:00 2001 From: Fabrice Fontaine Date: Tue, 28 Feb 2017 20:48:04 +0100 Subject: [PATCH] Do not build unity library if tests are disabled Signed-off-by: Fabrice Fontaine --- tests/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index c3721279..cd22fbc5 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -1,6 +1,6 @@ -add_library(unity unity/src/unity.c) - if(ENABLE_CJSON_TEST) + add_library(unity unity/src/unity.c) + #copy test files file(MAKE_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/inputs") file(GLOB test_files "inputs/*")