Skip to content
Permalink
Browse files

If on android force POSTGRES_INCLUDE_DIR and POSTGRES_LIBRARY, needs …

…to be bette but works
  • Loading branch information
mbernasocchi committed Aug 26, 2011
1 parent 5cba125 commit 76244bc59ce766dca0d65918f130d3277f49c707
Showing with 8 additions and 2 deletions.
  1. +8 −2 cmake/FindPostgres.cmake
@@ -14,7 +14,12 @@
# POSTGRES_INCLUDE_DIR
# POSTGRES_LIBRARY

IF(WIN32)
IF(ANDROID)
SET(POSTGRES_INCLUDE_DIR ${POSTGRES_INCLUDE_DIR} CACHE STRING INTERNAL)
SET(POSTGRES_LIBRARY ${PG_TMP}/libpq.so CACHE STRING INTERNAL)
ENDIF(ANDROID)

IF(WIN32 AND NOT ANDROID)
IF (NOT POSTGRES_INCLUDE_DIR)
FIND_PATH(POSTGRES_INCLUDE_DIR libpq-fe.h
/usr/local/include
@@ -65,7 +70,8 @@ ELSE(WIN32)
ENDIF(POSTGRES_CONFIG)

ENDIF(UNIX)
ENDIF(WIN32)
ENDIF(WIN32 AND NOT ANDROID)


IF (POSTGRES_INCLUDE_DIR AND POSTGRES_LIBRARY)
SET(POSTGRES_FOUND TRUE)

0 comments on commit 76244bc

Please sign in to comment.
You can’t perform that action at this time.