aboutsummaryrefslogtreecommitdiffstats
path: root/src/evdns/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'src/evdns/CMakeLists.txt')
-rw-r--r--src/evdns/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/evdns/CMakeLists.txt b/src/evdns/CMakeLists.txt
index aef7f95d2..fff890e59 100644
--- a/src/evdns/CMakeLists.txt
+++ b/src/evdns/CMakeLists.txt
@@ -2,4 +2,8 @@
SET(EVDNSSRC evdns.c)
ADD_LIBRARY(rspamd_evdns STATIC ${EVDNSSRC})
+IF(CMAKE_COMPILER_IS_GNUCC)
SET_TARGET_PROPERTIES(rspamd_evdns PROPERTIES COMPILE_FLAGS "-fno-strict-aliasing -DRSPAMD_LIB")
+ELSE
+SET_TARGET_PROPERTIES(rspamd_evdns PROPERTIES COMPILE_FLAGS "-DRSPAMD_LIB")
+ENDIF(CMAKE_COMPILER_IS_GNUCC)