Unverified Commit 42be0bd5 authored by Anonymous Maarten's avatar Anonymous Maarten Committed by GitHub

cmake: set VERSION + SOVERSION property on libraries

These properties are only active when the libraries are built as a shared library.
parent 6304782e
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment