Skip to content

Commit

Permalink
Merge pull request duckdb#10492 from SChakravorti21/fix-empty-normali…
Browse files Browse the repository at this point in the history
…zed-version

Avoid setting `DUCKDB_NORMALIZED_VERSION` to an empty string
  • Loading branch information
Mytherin authored Feb 7, 2024
2 parents 703a2fd + 4490eec commit c5a42f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ endif()

string(REGEX MATCH ".*dev.*" DUCKDB_EXTENSION_FOLDER_IS_VERSION "${DUCKDB_VERSION}")

if(DUCKDB_EXTENSION_FOLDER_IS_VERSION)
if(DUCKDB_EXTENSION_FOLDER_IS_VERSION AND DEFINED GIT_COMMIT_HASH)
set(DUCKDB_NORMALIZED_VERSION "${GIT_COMMIT_HASH}")
else()
set(DUCKDB_NORMALIZED_VERSION "${DUCKDB_VERSION}")
Expand Down

0 comments on commit c5a42f6

Please sign in to comment.