mirror of
https://github.com/DaveGamble/cJSON
synced 2024-12-25 08:02:03 +00:00
CMake: Build test by default
This commit is contained in:
parent
c3fecc2d07
commit
47841ed3a7
@ -64,7 +64,7 @@ set_target_properties(${CJSON_UTILS_LIB}
|
||||
SOVERSION ${CJSON_UTILS_VERSION_SO}
|
||||
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)
|
||||
set(TEST_CJSON cJSON_test)
|
||||
add_executable(${TEST_CJSON} test.c)
|
||||
|
Loading…
Reference in New Issue
Block a user