Do not build unity library if tests are disabled

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
This commit is contained in:
Fabrice Fontaine 2017-02-28 20:48:04 +01:00
parent c0ff1fef9b
commit 695d8a01a9
1 changed files with 2 additions and 2 deletions

View File

@ -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/*")