diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-10-17 14:19:38 +0300 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-10-17 14:19:38 +0300 |
commit | 96e14f0474571c1c27164ff79a16413de9b3027a (patch) | |
tree | 150f67f2f8d97521e3a3e535718a53629e48002f /lib | |
parent | b441439d550de340e892903b1309fb35bfba6312 (diff) | |
download | rspamd-96e14f0474571c1c27164ff79a16413de9b3027a.tar.gz rspamd-96e14f0474571c1c27164ff79a16413de9b3027a.zip |
Fix build under Solaris10. Reported in https://bitbucket.org/vstakhov/rspamd/issue/21/rspamd-solaris10-x86-openindiana
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CMakeLists.txt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index 12ffaf62e..38674d6e7 100644 --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt @@ -3,9 +3,12 @@ SET(LIBRSPAMDSRC librspamdclient.c ../src/mem_pool.c ../src/upstream.c ../sr ADD_LIBRARY(rspamdclient SHARED ${LIBRSPAMDSRC}) ADD_LIBRARY(rspamdclient_static STATIC ${LIBRSPAMDSRC}) -SET_TARGET_PROPERTIES(rspamdclient PROPERTIES COMPILE_FLAGS "-fno-strict-aliasing") SET_TARGET_PROPERTIES(rspamdclient PROPERTIES PUBLIC_HEADER "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 ${CMAKE_REQUIRED_LIBRARIES}) TARGET_LINK_LIBRARIES(rspamdclient pcre) |