diff --git a/CMakeLists.txt b/CMakeLists.txt
index f59045da2413c77062cdb1e626e68e36898a4c90..b3a9c70eef6e0973cddd05def9714eb259475916 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