mirror of
https://github.com/DaveGamble/cJSON.git
synced 2026-10-30 12:56:01 +00:00
CMake: Build test by default
This commit is contained in:
1 parent
c3fecc2d07
commit
47841ed3a7
1 file changed
+1
-1
+1
-1
@@ -64,7 +64,7 @@ set_target_properties(${CJSON_UTILS_LIB}
|
|||||||
SOVERSION ${CJSON_UTILS_VERSION_SO}
|
SOVERSION ${CJSON_UTILS_VERSION_SO}
|
||||||
VERSION ${CJSON_VERSION})
|
VERSION ${CJSON_VERSION})
|
||||||
|
|
||||||
option(ENABLE_CJSON_TEST "Enable building cJSON test" OFF)
|
option(ENABLE_CJSON_TEST "Enable building cJSON test" ON)
|
||||||
if(ENABLE_CJSON_TEST)
|
if(ENABLE_CJSON_TEST)
|
||||||
set(TEST_CJSON cJSON_test)
|
set(TEST_CJSON cJSON_test)
|
||||||
add_executable(${TEST_CJSON} test.c)
|
add_executable(${TEST_CJSON} test.c)
|
||||||
|
|||||||
Reference in new issue
Block a user