提交 2183bf43 编写于 作者: H Haisheng Yuan

Update Version number macros

We bumped the GPORCA version to 2.0 after merging GPOS with GPORCA.
Cmake undefs the GPORCA_VERSION_MINOR when the minor number is 0. 0 is
considered as a false constant by cmake.

In gpdb, use GPORCA_VERSION_STRING instead of separate GPORCA_VERSION_MAJOR
and GPORCA_VERSION_MINOR.

Bumped the GPORCA version to 2.1
Signed-off-by: NDhanashree Kashid <dkashid@pivotal.io>
上级 aab8d7fe
...@@ -4,7 +4,7 @@ cmake_minimum_required(VERSION 3.0 FATAL_ERROR) ...@@ -4,7 +4,7 @@ cmake_minimum_required(VERSION 3.0 FATAL_ERROR)
project(gpopt LANGUAGES CXX C) project(gpopt LANGUAGES CXX C)
set(GPORCA_VERSION_MAJOR 2) set(GPORCA_VERSION_MAJOR 2)
set(GPORCA_VERSION_MINOR 0) set(GPORCA_VERSION_MINOR 1)
set(GPORCA_VERSION_STRING ${GPORCA_VERSION_MAJOR}.${GPORCA_VERSION_MINOR}) set(GPORCA_VERSION_STRING ${GPORCA_VERSION_MAJOR}.${GPORCA_VERSION_MINOR})
# Whenever an ABI-breaking change is made to GPORCA, this should be incremented. # Whenever an ABI-breaking change is made to GPORCA, this should be incremented.
......
...@@ -12,8 +12,7 @@ ...@@ -12,8 +12,7 @@
#ifndef GPORCA_version_H #ifndef GPORCA_version_H
#define GPORCA_version_H #define GPORCA_version_H
#cmakedefine GPORCA_VERSION_MAJOR ${GPORCA_VERSION_MAJOR} #cmakedefine GPORCA_VERSION_STRING "${GPORCA_VERSION_STRING}"
#cmakedefine GPORCA_VERSION_MINOR ${GPORCA_VERSION_MINOR}
#endif // GPORCA_version_H #endif // GPORCA_version_H
// EOF // EOF
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册