From 72a120c247863a450b9e8dbf160bf5bd617cfc2d Mon Sep 17 00:00:00 2001
From: Olivier Couet <Olivier.Couet@cern.ch>
Date: Fri, 2 Nov 2012 08:10:20 +0000
Subject: [PATCH] Fix from Pere attempting to fix the mathtext issue with cmake
 on windows.

git-svn-id: http://root.cern.ch/svn/root/trunk@46989 27541ba8-7e3a-0410-8455-c3a389f83636
---
 cmake/modules/RootNewMacros.cmake | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cmake/modules/RootNewMacros.cmake b/cmake/modules/RootNewMacros.cmake
index 91035eabb1b..25c33c1ec20 100644
--- a/cmake/modules/RootNewMacros.cmake
+++ b/cmake/modules/RootNewMacros.cmake
@@ -267,7 +267,7 @@ function(ROOT_LINKER_LIBRARY library)
     message("Target ${library} already exists. Renaming target name to ${library}_new")
     set(library ${library}_new)
   endif()
-  if(WIN32 AND NOT ARG_DLLEXPORT)
+  if(WIN32 AND ARG_TYPE STREQUAL SHARED AND NOT ARG_DLLEXPORT) 
     #---create a list of all the object files-----------------------------
     if(CMAKE_GENERATOR MATCHES "Visual Studio")
       foreach(src1 ${lib_srcs})
-- 
GitLab