Skip to content

Commit

Permalink
Update CMake build SO version. Fixes log4cplus#479.
Browse files Browse the repository at this point in the history
  • Loading branch information
wilx committed Oct 21, 2020
1 parent 62cc851 commit aa1a04c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ include (Log4CPlusUtils.cmake)
log4cplus_get_version ("${PROJECT_SOURCE_DIR}/include"
log4cplus_version_major log4cplus_version_minor log4cplus_version_patch)
message("-- Generating build for Log4cplus version ${log4cplus_version_major}.${log4cplus_version_minor}.${log4cplus_version_patch}")
set (log4cplus_soversion 0)
set (log4cplus_soversion 3)
set (log4cplus_postfix "")

option(LOG4CPLUS_BUILD_TESTING "Build the test suite." ON)
Expand Down
7 changes: 7 additions & 0 deletions scripts/propagate-version.pl
Original file line number Diff line number Diff line change
Expand Up @@ -100,4 +100,11 @@ BEGIN
/$major$1$minor$2$so_current_adjusted/gx;
print $line;
}

local @ARGV = ("CMakeLists.txt");
while (my $line = <>)
{
$line =~ s/^(\s* set \s* \( \s* log4cplus_soversion \s*) (\d+)/$1$so_current_adjusted/x;
print $line;
}
}

0 comments on commit aa1a04c

Please sign in to comment.