Skip to content

Commit

Permalink
[CBRD-24297] jdbc driver fails ot initialize if not built from within…
Browse files Browse the repository at this point in the history
… valid submodule git repo clone (#36)

http://jira.cubrid.org/browse/CBRD-24297

- If there is no git information, The EXTRA VERSION is replaced with 0000.
  • Loading branch information
hwany7seo authored Apr 28, 2022
1 parent b90fa4c commit cacc69e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cmake/gen_version.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,10 @@ else(EXISTS ${CUBRID_JDBC_OUTPUT_DIR}/VERSION-DIST AND NOT EXISTS ${CUBRID_JDBC_
list(GET VERSION_MATCHES 0 EXTRA_VERSION)
endif (UNIX)

if(git_result)
message(FATAL_ERROR "Could not get count information from Git")
endif(git_result)
if ("${EXTRA_VERSION}" STREQUAL "")
message(WARNING "Could not get count information from Git. So EXTRA_VERSION is 0000")
set(EXTRA_VERSION "0000")
endif ("${EXTRA_VERSION}" STREQUAL "")

set(CUBRID_JDBC_RELEASE_VERSION ${CUBRID_JDBC_VERSION}.${EXTRA_VERSION})

Expand Down

0 comments on commit cacc69e

Please sign in to comment.