]> granicus.if.org Git - libexpat/commitdiff
CMake: Add soversion, support -DNO_SONAME=yes to bypass (issue #536)
authorSebastian Pipping <sebastian@pipping.org>
Sat, 28 May 2016 17:38:59 +0000 (19:38 +0200)
committerSebastian Pipping <sebastian@pipping.org>
Sat, 28 May 2016 17:55:40 +0000 (19:55 +0200)
expat/CMakeLists.txt
expat/configure.ac

index 228b5de3452120a8a0a7e43df89b0633207dc821..5cdd3019e1f91133492e4780c3cba0806fcaa0da 100755 (executable)
@@ -67,6 +67,8 @@ else(BUILD_shared)
 endif(BUILD_shared)\r
 \r
 add_library(expat ${_SHARED} ${expat_SRCS})\r
+set_property(TARGET expat PROPERTY SOVERSION 1.6.0)  # sync with configure.ac!\r
+set_property(TARGET expat PROPERTY NO_SONAME ${NO_SONAME})\r
 \r
 install(TARGETS expat RUNTIME DESTINATION bin\r
                       LIBRARY DESTINATION lib\r
index 3b2c99e448e35e586a9729e3c8464195e344e47b..877edd8164c9ea44b3b5a90270c5e37b8d0a89cb 100644 (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)