فهرست منبع

Do not build unity library if tests are disabled

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Fabrice Fontaine 8 سال پیش
والد
کامیت
695d8a01a9
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  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)
+    add_library(unity unity/src/unity.c)
+
     #copy test files
     file(MAKE_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/inputs")
     file(GLOB test_files "inputs/*")