Skip to content

Commit

Permalink
Merge pull request #351 from Enmk/fix_version
Browse files Browse the repository at this point in the history
Fixed version-related hiccups
  • Loading branch information
Enmk authored Dec 6, 2023
2 parents db374b8 + 21793b8 commit 157369c
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 6 deletions.
2 changes: 0 additions & 2 deletions clickhouse/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,3 @@
+ CLICKHOUSE_CPP_VERSION_MINOR * 100 * 100 \
+ CLICKHOUSE_CPP_VERSION_PATCH * 100 \
+ CLICKHOUSE_CPP_VERSION_BUILD

#define CLICKHOUSE_CPP_VERSION_STRING #CLICKHOUSE_CPP_VERSION_MAJOR "." #CLICKHOUSE_CPP_VERSION_MINOR "." #CLICKHOUSE_CPP_VERSION_PATCH
3 changes: 1 addition & 2 deletions cmake/version.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,11 @@ function (regex_extract_matching_groups INPUT REGEX_STR)
endforeach ()
endfunction ()

regex_extract_matching_groups("ttest" "FAILED TO SERCH" RESULT)

function(clickhouse_cpp_get_version)
# Extract all components of the version from the clickhouse/version.h

file(READ ${CMAKE_SOURCE_DIR}/clickhouse/version.h VERSION_FILE_DATA)
file(READ ${CMAKE_CURRENT_SOURCE_DIR}/clickhouse/version.h VERSION_FILE_DATA)

foreach (VERSION_COMPONENT
IN ITEMS
Expand Down
2 changes: 0 additions & 2 deletions ut/client_ut.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,6 @@ TEST_P(ClientCase, Version) {
EXPECT_EQ(CLICKHOUSE_CPP_VERSION_PATCH, version.patch);
EXPECT_EQ(CLICKHOUSE_CPP_VERSION_BUILD, version.build);
EXPECT_EQ(CLICKHOUSE_CPP_VERSION_PATCH, version.patch);

// EXPECT_EQ(CLICKHOUSE_CPP_VERSION, versionNumber(version.major, version.minor, version.patch, version.build));
}

TEST_P(ClientCase, Array) {
Expand Down

0 comments on commit 157369c

Please sign in to comment.