forked from darktable-org/darktable
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Try to get rid of explicit Gettext dependency"
This reverts commit 8d26343.
- Loading branch information
Showing
4 changed files
with
69 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# - Try to find Gettext | ||
# Once done, this will define | ||
# | ||
# Gettext_FOUND - system has Gettext | ||
# Gettext_INCLUDE_DIRS - the Gettext include directories | ||
# Gettext_LIBRARIES - link these to use Gettext | ||
# | ||
# See documentation on how to write CMake scripts at | ||
# http://www.cmake.org/Wiki/CMake:How_To_Find_Libraries | ||
|
||
include(LibFindMacros) | ||
|
||
# On Linux there is no pkgconfig script, but with this we force Gettext_PKGCONF_INCLUDE_DIRS to "" | ||
if(CMAKE_SYSTEM_NAME STREQUAL "Linux") | ||
set(Gettext_PKGCONF_INCLUDE_DIRS "") | ||
else(CMAKE_SYSTEM_NAME STREQUAL "Linux") | ||
libfind_pkg_check_modules(Gettext_PKGCONF Gettext) | ||
endif(CMAKE_SYSTEM_NAME STREQUAL "Linux") | ||
|
||
if(WIN32 OR APPLE) | ||
set(Gettext_LIBRARY_SEARCH_DIRS | ||
/opt/local/lib | ||
/sw/local/lib | ||
) | ||
|
||
find_library(Gettext_LIBRARY | ||
NAMES intl | ||
PATHS ${Gettext_LIBRARY_SEARCH_DIRS} | ||
HINTS ${Gettext_PKGCONF_LIBRARY_DIRS} | ||
) | ||
|
||
set(Gettext_PROCESS_LIBS Gettext_LIBRARY) | ||
endif() | ||
|
||
find_path(Gettext_INCLUDE_DIR | ||
NAMES libintl.h | ||
HINTS ${Gettext_PKGCONF_INCLUDE_DIRS} | ||
PATHS /opt/local/include | ||
) | ||
|
||
set(Gettext_PROCESS_INCLUDES Gettext_INCLUDE_DIR) | ||
libfind_process(Gettext) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters