From 872a334c19615873e796175158bb93420f439492 Mon Sep 17 00:00:00 2001 From: Thorbjørn Lindeijer Date: Mon, 8 Apr 2024 14:59:47 +0200 Subject: CMake: Use FindIntl FindIntl was added with CMake 3.2 and can be used to find the Gettext libintl headers and libraries. I've removed special handling of Solaris, which explicitly added linking to 'intl' and added '/usr/local/lib' include path. It can be easily restored if necessary, once somebody tries to compile Mana on Solaris. --- CMake/Modules/FindLibIntl.cmake | 46 ----------------------------------------- 1 file changed, 46 deletions(-) delete mode 100644 CMake/Modules/FindLibIntl.cmake (limited to 'CMake/Modules/FindLibIntl.cmake') diff --git a/CMake/Modules/FindLibIntl.cmake b/CMake/Modules/FindLibIntl.cmake deleted file mode 100644 index e7596052..00000000 --- a/CMake/Modules/FindLibIntl.cmake +++ /dev/null @@ -1,46 +0,0 @@ -# Try to find the libintl library. Explicit searching is currently -# only required for Win32, though it might be useful for some UNIX -# variants, too. Therefore code for searching common UNIX include -# directories is included, too. -# -# Once done this will define -# -# LIBINTL_FOUND - system has libintl -# LIBINTL_LIBRARIES - the library needed for linking - -IF (LibIntl_LIBRARY) - SET(LibIntl_FIND_QUIETLY TRUE) -ENDIF () - -# for Windows we rely on the environement variables -# %INCLUDE% and %LIB%; FIND_LIBRARY checks %LIB% -# automatically on Windows -IF(WIN32) - FIND_LIBRARY(LibIntl_LIBRARY - NAMES intl - ) -ELSE() - FIND_LIBRARY(LibIntl_LIBRARY - NAMES intl - PATHS /usr/lib /usr/local/lib - ) -ENDIF() - -IF (LibIntl_LIBRARY) - SET(LIBINTL_FOUND TRUE) - SET(LIBINTL_LIBRARIES ${LibIntl_LIBRARY}) -ELSE () - SET(LIBINTL_FOUND FALSE) -ENDIF () - -IF (LIBINTL_FOUND) - IF (NOT LibIntl_FIND_QUIETLY) - MESSAGE(STATUS "Found libintl: ${LibIntl_LIBRARY}") - ENDIF () -ELSE () - IF (LibIntl_FIND_REQUIRED) - MESSAGE(FATAL_ERROR "Could NOT find libintl") - ENDIF () -ENDIF () - -MARK_AS_ADVANCED(LibIntl_LIBRARY) -- cgit v1.2.3-70-g09d2