diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2012-08-06 16:05:46 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2012-08-06 16:05:46 +0400 |
commit | 1ac49a8c1e495dafa84f715605d1bcb014f467e9 (patch) | |
tree | 652089156c12d478cf07ac0284f492a08d7f59a6 /lib/CMakeLists.txt | |
parent | 1f2480b4b4464f680238f1aae0d0e3c5fbabc3cb (diff) | |
download | rspamd-1ac49a8c1e495dafa84f715605d1bcb014f467e9.tar.gz rspamd-1ac49a8c1e495dafa84f715605d1bcb014f467e9.zip |
More fixes for debian. Suggested by: Laszlo Boszormenyi (GCS)
Diffstat (limited to 'lib/CMakeLists.txt')
-rw-r--r-- | lib/CMakeLists.txt | 39 |
1 files changed, 18 insertions, 21 deletions
diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index 46f7f9fd5..c09f30875 100644 --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt @@ -84,29 +84,30 @@ IF(NO_SHARED MATCHES "OFF") ENDIF(NO_SHARED MATCHES "OFF") # Rspamd client -ADD_LIBRARY(rspamdclient SHARED ${LIBRSPAMDCLIENTSRC}) -ADD_LIBRARY(rspamdclient_static STATIC ${LIBRSPAMDCLIENTSRC}) IF(NOT DEBIAN_BUILD) -SET_TARGET_PROPERTIES(rspamdclient PROPERTIES PUBLIC_HEADER "client/librspamdclient.h") + ADD_LIBRARY(rspamdclient SHARED ${LIBRSPAMDCLIENTSRC}) + ADD_LIBRARY(rspamdclient_static STATIC ${LIBRSPAMDCLIENTSRC}) + SET_TARGET_PROPERTIES(rspamdclient PROPERTIES PUBLIC_HEADER "client/librspamdclient.h") + IF(CMAKE_COMPILER_IS_GNUCC) + SET_TARGET_PROPERTIES(rspamdclient PROPERTIES COMPILE_FLAGS "-fno-strict-aliasing") + SET_TARGET_PROPERTIES(rspamdclient_static PROPERTIES COMPILE_FLAGS "-fno-strict-aliasing") + ENDIF(CMAKE_COMPILER_IS_GNUCC) + TARGET_LINK_LIBRARIES(rspamdclient rspamd-util) + TARGET_LINK_LIBRARIES(rspamdclient_static ${CMAKE_REQUIRED_LIBRARIES}) + TARGET_LINK_LIBRARIES(rspamdclient_static ${GLIB2_LIBRARIES}) +ELSE(NOT DEBIAN_BUILD) + ADD_LIBRARY(rspamdclient STATIC ${LIBRSPAMDCLIENTSRC}) + IF(CMAKE_COMPILER_IS_GNUCC) + SET_TARGET_PROPERTIES(rspamdclient PROPERTIES COMPILE_FLAGS "-fno-strict-aliasing") + ENDIF(CMAKE_COMPILER_IS_GNUCC) + TARGET_LINK_LIBRARIES(rspamdclient rspamd-util) + TARGET_LINK_LIBRARIES(rspamdclient ${CMAKE_REQUIRED_LIBRARIES}) + TARGET_LINK_LIBRARIES(rspamdclient ${GLIB2_LIBRARIES}) ENDIF(NOT DEBIAN_BUILD) -IF(CMAKE_COMPILER_IS_GNUCC) -SET_TARGET_PROPERTIES(rspamdclient PROPERTIES COMPILE_FLAGS "-fno-strict-aliasing") -SET_TARGET_PROPERTIES(rspamdclient_static PROPERTIES COMPILE_FLAGS "-fno-strict-aliasing") -ENDIF(CMAKE_COMPILER_IS_GNUCC) - -TARGET_LINK_LIBRARIES(rspamdclient rspamd-util) - -TARGET_LINK_LIBRARIES(rspamdclient_static ${CMAKE_REQUIRED_LIBRARIES}) -TARGET_LINK_LIBRARIES(rspamdclient_static ${GLIB2_LIBRARIES}) - - IF(NOT DEBIAN_BUILD) SET_TARGET_PROPERTIES(rspamdclient PROPERTIES VERSION ${RSPAMD_VERSION}) SET_TARGET_PROPERTIES(rspamdclient_static PROPERTIES VERSION ${RSPAMD_VERSION}) -ELSE(NOT DEBIAN_BUILD) - SET_TARGET_PROPERTIES(rspamdclient PROPERTIES SOVERSION ${RSPAMD_VERSION}) - SET_TARGET_PROPERTIES(rspamdclient PROPERTIES VERSION ${RSPAMD_VERSION}) ENDIF(NOT DEBIAN_BUILD) IF(GLIB_COMPAT) @@ -119,10 +120,6 @@ IF(NOT DEBIAN_BUILD) LIBRARY DESTINATION ${LIBDIR} PUBLIC_HEADER DESTINATION ${INCLUDEDIR} ARCHIVE DESTINATION ${LIBDIR}) -ELSE(NOT DEBIAN_BUILD) - INSTALL(TARGETS rspamdclient - LIBRARY DESTINATION ${LIBDIR} - NAMELINK_SKIP) ENDIF(NOT DEBIAN_BUILD) |