mirror of
https://github.com/DaveGamble/cJSON.git
synced 2026-11-02 13:20:53 +00:00
Do not build unity library if tests are disabled
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
This commit is contained in:
1 parent
c0ff1fef9b
commit
695d8a01a9
1 file changed
+2
-2
@@ -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/*")
|
||||||
|
|||||||
Reference in new issue
Block a user