|
From: Stefano A. <xa...@us...> - 2009-12-21 17:48:13
|
Module: performous
Branch: master
Commit: 73d4a131ef162e2c9d4177e4934853ebce6ca8ad
Author: Xaldyz <xa...@us...>
Date: Mon Dec 21 18:47:29 2009 +0100
Improved Gettext search detection
---
cmake/Modules/FindGettext.cmake | 15 ++++-----------
1 files changed, 4 insertions(+), 11 deletions(-)
diff --git a/cmake/Modules/FindGettext.cmake b/cmake/Modules/FindGettext.cmake
index 78a62a6..2582a1c 100644
--- a/cmake/Modules/FindGettext.cmake
+++ b/cmake/Modules/FindGettext.cmake
@@ -11,18 +11,11 @@
include(LibFindMacros)
# On Linux there is no pkgconfig script and gettext is part of glibc
-if(WIN32)
- libfind_pkg_check_modules(Gettext_PKGCONF Gettext)
-
- find_library(Gettext_LIBRARY
- NAMES libintl
- PATHS ${Gettext_PKGCONF_LIBRARY_DIRS}
- )
- set(Gettext_PROCESS_LIBS Gettext_LIBRARY)
-endif()
-
-if(APPLE)
+if(WIN32 OR APPLE)
+ libfind_pkg_check_modules(Gettext_PKGCONF Gettext)
+
set(Gettext_LIBRARY_SEARCH_DIRS
+ ${Gettext_PKGCONF_LIBRARY_DIRS}
/opt/local/lib
/sw/local/lib
)
|