Repository: madlib
Updated Branches:
  refs/heads/master 59844eb1f -> 3540a5603


CMake: Fix false positive for Postgres 10+ check

We used to mistake 9.3.24 as a higher version than Postgres 10 and stop
matching it to the correct "port". This patch fixes that.

Closes #320


Project: http://git-wip-us.apache.org/repos/asf/madlib/repo
Commit: http://git-wip-us.apache.org/repos/asf/madlib/commit/3540a560
Tree: http://git-wip-us.apache.org/repos/asf/madlib/tree/3540a560
Diff: http://git-wip-us.apache.org/repos/asf/madlib/diff/3540a560

Branch: refs/heads/master
Commit: 3540a560351a496f42469560b2a6a69743b1f668
Parents: 59844eb
Author: Jesse Zhang <[email protected]>
Authored: Wed Sep 12 18:53:35 2018 -0700
Committer: Nandish Jayaram <[email protected]>
Committed: Mon Sep 17 16:46:28 2018 -0700

----------------------------------------------------------------------
 src/ports/postgres/cmake/PostgreSQLUtils.cmake | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/madlib/blob/3540a560/src/ports/postgres/cmake/PostgreSQLUtils.cmake
----------------------------------------------------------------------
diff --git a/src/ports/postgres/cmake/PostgreSQLUtils.cmake 
b/src/ports/postgres/cmake/PostgreSQLUtils.cmake
index 0139015..6f16d79 100644
--- a/src/ports/postgres/cmake/PostgreSQLUtils.cmake
+++ b/src/ports/postgres/cmake/PostgreSQLUtils.cmake
@@ -83,7 +83,7 @@ function(determine_target_versions OUT_VERSIONS)
                 endif()
             elseif(${PORT_UC} STREQUAL "POSTGRESQL" AND
                     (${${PORT_UC}_VERSION_MAJOR} EQUAL 10 OR
-                    ${${PORT_UC}_VERSION_PATCH} GREATER 10))
+                    ${${PORT_UC}_VERSION_MAJOR} GREATER 10))
                 # Starting Postgresql 10, semantic versioning will be followed,
                 # implying we only need 1 folder for same major versions
                 set(VERSION ${${PORT_UC}_VERSION_MAJOR})

Reply via email to