From: Ferdinand Thiessen Date: Thu, 3 Dec 2015 20:34:46 +0000 (+0100) Subject: Fix build if BUILD_SHARED_LIBS defaults to "ON" X-Git-Tag: 0.4.14~406 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d8975eabf95fac1881f75ab149d0cebeff3d10f3;p=oweals%2Fminetest.git Fix build if BUILD_SHARED_LIBS defaults to "ON" openSUSE sets that option to ON. Fixes #3420. --- diff --git a/src/cguittfont/CMakeLists.txt b/src/cguittfont/CMakeLists.txt index 7717a2f91..6cd35f310 100644 --- a/src/cguittfont/CMakeLists.txt +++ b/src/cguittfont/CMakeLists.txt @@ -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