2010-12-08 04:07:48 -05:00
|
|
|
$OpenBSD: patch-cmake_FindPostgres_cmake,v 1.3 2010/12/08 09:07:48 landry Exp $
|
|
|
|
--- cmake/FindPostgres.cmake.orig Sat Oct 16 16:52:43 2010
|
|
|
|
+++ cmake/FindPostgres.cmake Mon Nov 29 17:31:37 2010
|
|
|
|
@@ -57,11 +57,7 @@ ELSE(WIN32)
|
2010-01-11 15:13:31 -05:00
|
|
|
EXEC_PROGRAM(${POSTGRES_CONFIG}
|
|
|
|
ARGS --libdir
|
|
|
|
OUTPUT_VARIABLE PG_TMP)
|
|
|
|
- IF (APPLE)
|
|
|
|
- SET(POSTGRES_LIBRARY ${PG_TMP}/libpq.dylib CACHE STRING INTERNAL)
|
|
|
|
- ELSE (APPLE)
|
|
|
|
- SET(POSTGRES_LIBRARY ${PG_TMP}/libpq.so CACHE STRING INTERNAL)
|
|
|
|
- ENDIF (APPLE)
|
2009-06-01 19:14:58 -04:00
|
|
|
+ FIND_LIBRARY(POSTGRES_LIBRARY NAMES pq libpq libpqdll PATHS ${LOCALBASE}/lib)
|
2010-01-11 15:13:31 -05:00
|
|
|
ENDIF(POSTGRES_CONFIG)
|
|
|
|
|
|
|
|
ENDIF(UNIX)
|