mirror of
https://github.com/DaveGamble/cJSON.git
synced 2023-08-10 21:13:26 +03:00
CMake: Build shared libraries by default
This is also what other projects are doing.
This commit is contained in:
parent
9acd1c6e7e
commit
c3fecc2d07
@ -14,6 +14,8 @@ set(prefix ${CMAKE_INSTALL_PREFIX})
|
|||||||
set(libdir "${CMAKE_INSTALL_PREFIX}/lib")
|
set(libdir "${CMAKE_INSTALL_PREFIX}/lib")
|
||||||
set(version ${CJSON_VERSION})
|
set(version ${CJSON_VERSION})
|
||||||
|
|
||||||
|
option(BUILD_SHARED_LIBS "Build shared libraries" ON)
|
||||||
|
|
||||||
#cJSON
|
#cJSON
|
||||||
set(PROJ_CJSON cJSON)
|
set(PROJ_CJSON cJSON)
|
||||||
set(CJSON_LIB cjson)
|
set(CJSON_LIB cjson)
|
||||||
|
Loading…
Reference in New Issue
Block a user