Explorar o código

CMake: Build shared libraries by default

This is also what other projects are doing.
Max Bruckner %!s(int64=8) %!d(string=hai) anos
pai
achega
c3fecc2d07
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      CMakeLists.txt

+ 2 - 0
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)