summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTony Kelman <tony@kelman.net>2015-03-08 18:09:35 -0700
committerTony Kelman <tony@kelman.net>2015-03-09 16:27:40 -0700
commit263421f9e89aafd8ad339c496c9fb6c6bdd5a52f (patch)
treec41b2b235ec82be729b434092bd2faeb2724014f
parent86f90194e1e7d359bbe3a751e2d407b33f2f7550 (diff)
downloadlibutf8proc-263421f9e89aafd8ad339c496c9fb6c6bdd5a52f.tar.gz
libutf8proc-263421f9e89aafd8ad339c496c9fb6c6bdd5a52f.tar.bz2
Temporary fix for getting VERSION and SOVERSION into cmake
only use ${SO_MAJOR} for cmake SOVERSION use 1.2.0 for version in cmake use only abi version for VERSION property in cmake
-rw-r--r--CMakeLists.txt11
-rw-r--r--Makefile1
2 files changed, 11 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4d0c1c3..da6aa78 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -6,6 +6,11 @@ disallow_intree_builds()
project (utf8proc C)
+# Be sure to also update these in Makefile!
+set(SO_MAJOR 1)
+set(SO_MINOR 2)
+set(SO_PATCH 0)
+
add_definitions (
-DUTF8PROC_EXPORTS
)
@@ -19,4 +24,8 @@ add_library (utf8proc
utf8proc.h
)
-set_property (TARGET utf8proc PROPERTY POSITION_INDEPENDENT_CODE ON)
+set_target_properties (utf8proc PROPERTIES
+ POSITION_INDEPENDENT_CODE ON
+ VERSION "${SO_MAJOR}.${SO_MINOR}.${SO_PATCH}"
+ SOVERSION ${SO_MAJOR}
+)
diff --git a/Makefile b/Makefile
index 99571e3..f40a116 100644
--- a/Makefile
+++ b/Makefile
@@ -16,6 +16,7 @@ cc = $(CC) $(cflags)
# from the utf8proc version number because it indicates ABI compatibility,
# not API compatibility: MAJOR should be incremented whenever *binary*
# compatibility is broken, even if the API is backward-compatible
+# Be sure to also update these in CMakeLists.txt!
MAJOR=1
MINOR=2
PATCH=0