From a799332877d7043cdc6070dfd3be80e0b51bf987 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 8 Aug 2012 02:31:13 +0400 Subject: [PATCH] Do not compile libkvstorage for debian as it is useless just now. --- lib/CMakeLists.txt | 48 +++++++++++++++++++++++----------------------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index c09f30875..eb9364bfa 100644 --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt @@ -188,30 +188,30 @@ IF(NO_SHARED MATCHES "OFF") ENDIF(NO_SHARED MATCHES "OFF") # Libkvstorageclient - -ADD_LIBRARY(kvstorageclient SHARED ${LIBRKVSTORAGESRC}) -ADD_LIBRARY(kvstorageclient_static STATIC ${LIBRKVSTORAGESRC}) IF(NOT DEBIAN_BUILD) -SET_TARGET_PROPERTIES(kvstorageclient PROPERTIES PUBLIC_HEADER "kvstorage/libkvstorageclient.h") -ENDIF(NOT DEBIAN_BUILD) - -IF(CMAKE_COMPILER_IS_GNUCC) -SET_TARGET_PROPERTIES(kvstorageclient PROPERTIES COMPILE_FLAGS "-fno-strict-aliasing") -SET_TARGET_PROPERTIES(kvstorageclient_static PROPERTIES COMPILE_FLAGS "-fno-strict-aliasing") -ENDIF(CMAKE_COMPILER_IS_GNUCC) - -TARGET_LINK_LIBRARIES(kvstorageclient rspamd-util) - -TARGET_LINK_LIBRARIES(kvstorageclient_static ${CMAKE_REQUIRED_LIBRARIES}) -TARGET_LINK_LIBRARIES(kvstorageclient_static ${GLIB2_LIBRARIES}) - -IF(NOT DEBIAN_BUILD) -SET_TARGET_PROPERTIES(kvstorageclient PROPERTIES VERSION ${RSPAMD_VERSION}) -SET_TARGET_PROPERTIES(kvstorageclient_static PROPERTIES VERSION ${RSPAMD_VERSION}) + ADD_LIBRARY(kvstorageclient SHARED ${LIBRKVSTORAGESRC}) + ADD_LIBRARY(kvstorageclient_static STATIC ${LIBRKVSTORAGESRC}) + IF(NOT DEBIAN_BUILD) + SET_TARGET_PROPERTIES(kvstorageclient PROPERTIES PUBLIC_HEADER "kvstorage/libkvstorageclient.h") + ENDIF(NOT DEBIAN_BUILD) + + IF(CMAKE_COMPILER_IS_GNUCC) + SET_TARGET_PROPERTIES(kvstorageclient PROPERTIES COMPILE_FLAGS "-fno-strict-aliasing") + SET_TARGET_PROPERTIES(kvstorageclient_static PROPERTIES COMPILE_FLAGS "-fno-strict-aliasing") + ENDIF(CMAKE_COMPILER_IS_GNUCC) + + TARGET_LINK_LIBRARIES(kvstorageclient rspamd-util) + + TARGET_LINK_LIBRARIES(kvstorageclient_static ${CMAKE_REQUIRED_LIBRARIES}) + TARGET_LINK_LIBRARIES(kvstorageclient_static ${GLIB2_LIBRARIES}) + + SET_TARGET_PROPERTIES(kvstorageclient PROPERTIES VERSION ${RSPAMD_VERSION}) + SET_TARGET_PROPERTIES(kvstorageclient_static PROPERTIES VERSION ${RSPAMD_VERSION}) + + + IF(GLIB_COMPAT) + INCLUDE_DIRECTORIES("${CMAKE_CURRENT_SOURCE_DIR}/contrib/lgpl") + TARGET_LINK_LIBRARIES(kvstorageclient glibadditions) + ENDIF(GLIB_COMPAT) ENDIF(NOT DEBIAN_BUILD) - -IF(GLIB_COMPAT) - INCLUDE_DIRECTORIES("${CMAKE_CURRENT_SOURCE_DIR}/contrib/lgpl") - TARGET_LINK_LIBRARIES(kvstorageclient glibadditions) -ENDIF(GLIB_COMPAT) INCLUDE_DIRECTORIES("${CMAKE_CURRENT_SOURCE_DIR}/src") \ No newline at end of file -- 2.39.5