Update FindPostgreSQL patch to use PostgreSQL_LIBRARY (bug #903757)

This commit is contained in:
Orion Poplawski 2013-01-24 21:35:32 -07:00
parent 6971045d5f
commit 556b25d625
2 changed files with 6 additions and 3 deletions

View File

@ -99,12 +99,12 @@ diff -up cmake-2.8.10-rc3/Modules/FindPostgreSQL.cmake.findpostgresql cmake-2.8.
+ set (PostgreSQL_LIBRARY_TO_FIND ${PostgreSQL_LIB_PREFIX}${PostgreSQL_LIBRARY_TO_FIND})
+ endif()
+
+ find_library (PostgreSQL_LIBRARY_FOUND
+ find_library (PostgreSQL_LIBRARY
+ NAMES ${PostgreSQL_LIBRARY_TO_FIND}
+ PATHS ${PostgreSQL_LIBRARY_DIRS}
+ PATH_SUFFIXES lib
+ )
+ fail_if (NOT PostgreSQL_LIBRARY_FOUND)
+ fail_if (NOT PostgreSQL_LIBRARY)
+ set (PostgreSQL_LIBRARIES ${PostgreSQL_LIBRARY_TO_FIND})
-find_library( PostgreSQL_LIBRARY

View File

@ -8,7 +8,7 @@
Name: cmake
Version: 2.8.10.2
Release: 2%{?dist}
Release: 3%{?dist}
Summary: Cross-platform make system
Group: Development/Tools
@ -182,6 +182,9 @@ update-mime-database %{_datadir}/mime &> /dev/null || :
%changelog
* Thu Jan 24 2013 Orion Poplawski <orion@cora.nwra.com> - 2.8.10.1-3
- Update FindPostgreSQL patch to use PostgreSQL_LIBRARY (bug #903757)
* Thu Jan 17 2013 Tomas Bzatek <tbzatek@redhat.com> - 2.8.10.2-2
- Rebuilt for new libarchive