From: Rafal Krypa Date: Mon, 1 Sep 2014 16:31:04 +0000 (+0200) Subject: build: drop unused definition of API_VERSION X-Git-Tag: accepted/tizen/common/20140905.175100~18 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7b0c554437300f2e836270324786ef54a9d06d94;p=platform%2Fcore%2Fsecurity%2Fcynara.git build: drop unused definition of API_VERSION This is probably copied from some template, but never used. Change-Id: I455bb316b65121ff9ed509884d40c0c14668efce Signed-off-by: Rafal Krypa --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 98ae1ae..c8f1482 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -44,8 +44,6 @@ ADD_DEFINITIONS("-Wextra") # Generate even more extra warni # Don't export symbols by default ADD_DEFINITIONS("-fvisibility=hidden") -STRING(REGEX MATCH "([^.]*)" API_VERSION "${VERSION}") -ADD_DEFINITIONS("-DAPI_VERSION=\"$(API_VERSION)\"") IF (CMAKE_BUILD_TYPE MATCHES "DEBUG") ADD_DEFINITIONS("-DBUILD_TYPE_DEBUG") diff --git a/packaging/cynara.spec b/packaging/cynara.spec index 77759cb..5890e9b 100644 --- a/packaging/cynara.spec +++ b/packaging/cynara.spec @@ -135,7 +135,7 @@ export FFLAGS="$FFLAGS -DTIZEN_DEBUG_ENABLE" export CXXFLAGS="$CXXFLAGS -DCYNARA_STATE_PATH=\\\"%{state_path}\\\"" export LDFLAGS+="-Wl,--rpath=%{_libdir}" -%cmake . -DVERSION=%{version} \ +%cmake . \ -DCMAKE_BUILD_TYPE=%{?build_type} \ -DCMAKE_VERBOSE_MAKEFILE=ON make %{?jobs:-j%jobs}