CMake: Add soversion, support -DNO_SONAME=yes to bypass (issue #536)

This commit is contained in:
Sebastian Pipping 2016-05-28 19:38:59 +02:00
parent 293dc5f730
commit 4363739fd5
2 changed files with 5 additions and 3 deletions

View File

@ -67,6 +67,8 @@ else(BUILD_shared)
endif(BUILD_shared)
add_library(expat ${_SHARED} ${expat_SRCS})
set_property(TARGET expat PROPERTY SOVERSION 1.6.0) # sync with configure.ac!
set_property(TARGET expat PROPERTY NO_SONAME ${NO_SONAME})
install(TARGETS expat RUNTIME DESTINATION bin
LIBRARY DESTINATION lib

View File

@ -45,9 +45,9 @@ dnl
dnl If the API changes incompatibly set LIBAGE back to 0
dnl
LIBCURRENT=7
LIBREVISION=0
LIBAGE=6
LIBCURRENT=7 # sync
LIBREVISION=0 # with
LIBAGE=6 # CMakeLists.txt!
AC_CONFIG_HEADER(expat_config.h)