Change-Id: I7e052958602e5da144aa6f0611aa5f9bd2740152
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
INCLUDE(FindPkgConfig)
-SET(SO_VERSION 1)
-SET(VERSION "${SO_VERSION}.0.0")
+STRING(REGEX MATCH "([^.]*)" SO_VERSION "${VERSION}")
# compiler options
SET(GC_SECTIONS_FLAGS "-fdata-sections -ffunction-sections -Wl,--gc-sections")
%{!?build_type:%define build_type "Release"}
%cmake . -DPREFIX=%{_prefix} \
+ -DVERSION=%{version} \
-DEXEC_PREFIX=%{_exec_prefix} \
-DLIBDIR=%{_libdir} \
-DINCLUDEDIR=%{_includedir} \