Skip to content

Commit

Permalink
FindGettest.cmake: silence warning on OS X too
Browse files Browse the repository at this point in the history
  • Loading branch information
parafin committed Nov 14, 2015
1 parent 0d2166d commit d1190c2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmake/modules/FindGettext.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ include(LibFindMacros)

# On Linux there is no pkgconfig script, but with this we force
# Gettext_PKGCONF_INCLUDE_DIRS to "". The situation is the same on
# FreeBSD: Gettext comes without a pkgconfig file.
if(CMAKE_SYSTEM_NAME MATCHES "^(Linux|FreeBSD)$")
# FreeBSD and OS X: Gettext comes without a pkgconfig file.
if(CMAKE_SYSTEM_NAME MATCHES "^(Linux|FreeBSD|Darwin)$")
set(Gettext_PKGCONF_INCLUDE_DIRS "")
else(CMAKE_SYSTEM_NAME MATCHES "^(Linux|FreeBSD)$")
else(CMAKE_SYSTEM_NAME MATCHES "^(Linux|FreeBSD|Darwin)$")
libfind_pkg_check_modules(Gettext_PKGCONF Gettext)
endif(CMAKE_SYSTEM_NAME MATCHES "^(Linux|FreeBSD)$")
endif(CMAKE_SYSTEM_NAME MATCHES "^(Linux|FreeBSD|Darwin)$")

if(WIN32 OR APPLE)
set(Gettext_LIBRARY_SEARCH_DIRS
Expand Down

0 comments on commit d1190c2

Please sign in to comment.