From ae5af2ba769797225cc466834de08edd90be92da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Del=20Pino?= <stephane.delpino44@gmail.com> Date: Mon, 26 Oct 2020 12:58:49 +0100 Subject: [PATCH] Build shared libraries by default Now internal libraries are build as shared ones to reduce linking time. One can build static libraries using '-DBUILD_SHARED_LIBS=OFF' --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index f59045da2..b3a9c70ee 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -79,6 +79,12 @@ if(NOT CMAKE_BUILD_TYPE) FORCE) endif() +#------------------------------------------------------ +# default build shared libraries +if (NOT BUILD_SHARED_LIBS) + set(BUILD_SHARED_LIBS ON CACHE STRING "" FORCE) +endif() + #------------------------------------------------------ # Checks if compiler version is compatible with Pugs sources -- GitLab