mirror of
https://github.com/luanti-org/luanti.git
synced 2025-09-15 18:57:08 +00:00
Fix some minor code issues all over the place
This commit is contained in:
parent
289425f6bd
commit
74762470b2
19 changed files with 45 additions and 109 deletions
|
@ -1,5 +1,3 @@
|
|||
cmake_minimum_required(VERSION 2.6)
|
||||
|
||||
project(minetest)
|
||||
|
||||
INCLUDE(CheckIncludeFiles)
|
||||
|
@ -124,27 +122,6 @@ option(ENABLE_FREETYPE "Enable FreeType2 (TrueType fonts and basic unicode suppo
|
|||
set(USE_FREETYPE FALSE)
|
||||
|
||||
if(ENABLE_FREETYPE)
|
||||
##
|
||||
## Note: FindFreetype.cmake seems to have been fixed in recent versions of
|
||||
## CMake. If issues persist, re-enable this workaround specificially for the
|
||||
## failing platforms.
|
||||
##
|
||||
# if(UNIX)
|
||||
# include(FindPkgConfig)
|
||||
# if(PKG_CONFIG_FOUND)
|
||||
# pkg_check_modules(FREETYPE QUIET freetype2)
|
||||
# if(FREETYPE_FOUND)
|
||||
# SET(FREETYPE_PKGCONFIG_FOUND TRUE)
|
||||
# SET(FREETYPE_LIBRARY ${FREETYPE_LIBRARIES})
|
||||
# # Because CMake is idiotic
|
||||
# string(REPLACE ";" " " FREETYPE_CFLAGS_STR ${FREETYPE_CFLAGS})
|
||||
# string(REPLACE ";" " " FREETYPE_LDFLAGS_STR ${FREETYPE_LDFLAGS})
|
||||
# endif(FREETYPE_FOUND)
|
||||
# endif(PKG_CONFIG_FOUND)
|
||||
# endif(UNIX)
|
||||
# if(NOT FREETYPE_FOUND)
|
||||
# find_package(Freetype)
|
||||
# endif()
|
||||
find_package(Freetype)
|
||||
if(FREETYPE_FOUND)
|
||||
message(STATUS "Freetype enabled.")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue