1
0
mirror of https://github.com/DaveGamble/cJSON synced 2024-12-24 23:52:07 +00:00

CMake: Build shared libraries by default

This is also what other projects are doing.
This commit is contained in:
Max Bruckner 2016-11-05 16:41:24 +07:00
parent 9acd1c6e7e
commit c3fecc2d07

View File

@ -14,6 +14,8 @@ set(prefix ${CMAKE_INSTALL_PREFIX})
set(libdir "${CMAKE_INSTALL_PREFIX}/lib")
set(version ${CJSON_VERSION})
option(BUILD_SHARED_LIBS "Build shared libraries" ON)
#cJSON
set(PROJ_CJSON cJSON)
set(CJSON_LIB cjson)