Skip to content

Commit

Permalink
Minor improvement: No insanely long (bogus) version strings are displ…
Browse files Browse the repository at this point in the history
…ayed if pg_config points to the wrong PG/GP installation. (This is due to the poor regular-expression engine in cmake)
  • Loading branch information
Florian Schoppmann authored and Florian Schoppmann committed Jun 13, 2011
1 parent f6a084c commit 3b251ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmake/FindGreenplum.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ if(GREENPLUM_PG_CONFIG AND GREENPLUM_CLIENT_INCLUDE_DIR)
else(GREENPLUM_PACKAGE_NAME STREQUAL "Greenplum Database")
message(STATUS "Found pg_config at \"${GREENPLUM_PG_CONFIG}\", but it does not point to a Greenplum installation.")
unset(GREENPLUM_CLIENT_INCLUDE_DIR)
unset(GREENPLUM_VERSION_STRING)
endif(GREENPLUM_PACKAGE_NAME STREQUAL "Greenplum Database")
endif(GREENPLUM_PG_CONFIG AND GREENPLUM_CLIENT_INCLUDE_DIR)

Expand Down
1 change: 1 addition & 0 deletions cmake/FindPostgreSQL.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ if(POSTGRESQL_PG_CONFIG AND POSTGRESQL_CLIENT_INCLUDE_DIR)
# here.
message(STATUS "Found pg_config at \"${POSTGRESQL_PG_CONFIG}\", but it does not point to a PostgreSQL installation.")
unset(POSTGRESQL_CLIENT_INCLUDE_DIR)
unset(POSTGRESQL_VERSION_STRING)
endif(POSTGRESQL_PACKAGE_NAME STREQUAL "PostgreSQL")
endif(POSTGRESQL_PG_CONFIG AND POSTGRESQL_CLIENT_INCLUDE_DIR)

Expand Down

0 comments on commit 3b251ab

Please sign in to comment.