From c3fecc2d0729e121f8944525ecf9c9b75af06204 Mon Sep 17 00:00:00 2001 From: Max Bruckner Date: Sat, 5 Nov 2016 16:41:24 +0700 Subject: [PATCH] CMake: Build shared libraries by default This is also what other projects are doing. --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5450b05..450b14e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) -- GitLab