Skip to content

Commit

Permalink
Merge pull request hyperrealm#184 from madebr/patch-1
Browse files Browse the repository at this point in the history
cmake: set VERSION + SOVERSION property on libraries
  • Loading branch information
hyperrealm authored Apr 27, 2021
2 parents 738ed7e + 42be0bd commit beab799
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,13 @@ add_library(${libname}++ ${libsrc_cpp} ${libinc_cpp})

set_target_properties(${libname}
PROPERTIES LINKER_LANGUAGE C
SOVERSION "${libconfig_VERSION_MAJOR}"
VERSION "${libconfig_VERSION}"
PUBLIC_HEADER "${libinc}")
set_target_properties(${libname}++
PROPERTIES LINKER_LANGUAGE CXX
SOVERSION "${libconfig_VERSION_MAJOR}"
VERSION "${libconfig_VERSION}"
PUBLIC_HEADER "${libinc_cpp}")

#check_symbol_exists(uselocale "locale.h" HAVE_USELOCALE)
Expand Down

0 comments on commit beab799

Please sign in to comment.