Fix build if BUILD_SHARED_LIBS defaults to "ON"
authorFerdinand Thiessen <rpm@fthiessen.de>
Thu, 3 Dec 2015 20:34:46 +0000 (21:34 +0100)
committerest31 <MTest31@outlook.com>
Thu, 3 Dec 2015 20:35:22 +0000 (21:35 +0100)
openSUSE sets that option to ON.

Fixes #3420.

src/cguittfont/CMakeLists.txt

index 7717a2f91075dd4b8db45ef8614cb02c555d1f63..6cd35f310fa36527b379c1863e12548adb8aada8 100644 (file)
@@ -2,7 +2,7 @@
 #   Do not add CGUITTFont.cpp to the line below.
 #   xCGUITTFont.cpp is a wrapper file that includes
 #   additional required headers.
-add_library(cguittfont xCGUITTFont.cpp)
+add_library(cguittfont STATIC xCGUITTFont.cpp)
 
 if(FREETYPE_PKGCONFIG_FOUND)
        set_target_properties(cguittfont