From f44aec47b4560248fe2f5396bc1368f0a42e68b4 Mon Sep 17 00:00:00 2001
From: Guilherme Amadio <amadio@cern.ch>
Date: Fri, 11 Jan 2019 11:22:42 +0100
Subject: [PATCH] Do not default to static libraries with -Dminimal=ON

This became a problem after 0c160b9072bcf8438a52a954a6a2d0b0f50cb7ef.
---
 cmake/modules/RootBuildOptions.cmake | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cmake/modules/RootBuildOptions.cmake b/cmake/modules/RootBuildOptions.cmake
index 901f59a3876..210a07c2044 100644
--- a/cmake/modules/RootBuildOptions.cmake
+++ b/cmake/modules/RootBuildOptions.cmake
@@ -299,7 +299,7 @@ endif()
 
 #---Apply minimal or gminimal------------------------------------------------------------------
 foreach(opt ${root_build_options})
-  if(NOT opt MATCHES "thread|cling|builtin_llvm|builtin_clang|builtin_ftgl|explicitlink")
+  if(NOT opt MATCHES "thread|cling|builtin_llvm|builtin_clang|builtin_ftgl|shared|explicitlink")
     if(minimal)
       set(${opt}_defvalue OFF)
     elseif(gminimal AND NOT opt MATCHES "x11|cocoa")
-- 
GitLab