Browse Source

Merge pull request #121 from ffontaine/master

Do not build unity library if tests are disabled
Max Bruckner 8 years ago
parent
commit
cb6df3ffad
1 changed files with 2 additions and 2 deletions
  1. 2 2
      tests/CMakeLists.txt

+ 2 - 2
tests/CMakeLists.txt

@@ -1,6 +1,6 @@
-add_library(unity unity/src/unity.c)
-
 if(ENABLE_CJSON_TEST)
 if(ENABLE_CJSON_TEST)
+    add_library(unity unity/src/unity.c)
+
     #copy test files
     #copy test files
     file(MAKE_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/inputs")
     file(MAKE_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/inputs")
     file(GLOB test_files "inputs/*")
     file(GLOB test_files "inputs/*")