diff options
Diffstat (limited to 'contrib/hiredis/CMakeLists.txt')
-rw-r--r-- | contrib/hiredis/CMakeLists.txt | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/contrib/hiredis/CMakeLists.txt b/contrib/hiredis/CMakeLists.txt new file mode 100644 index 000000000..992fe6c92 --- /dev/null +++ b/contrib/hiredis/CMakeLists.txt @@ -0,0 +1,14 @@ +# Hiredis compilation target + +SET(LIBHIREDISSRC async.c + dict.c + hiredis.c + net.c + sds.c) + +ADD_LIBRARY(hiredis STATIC ${LIBHIREDISSRC}) +IF(CMAKE_COMPILER_IS_GNUCC) +SET_TARGET_PROPERTIES(hiredis PROPERTIES COMPILE_FLAGS "-fno-strict-aliasing") +ENDIF(CMAKE_COMPILER_IS_GNUCC) + +TARGET_LINK_LIBRARIES(hiredis ${CMAKE_REQUIRED_LIBRARIES})
\ No newline at end of file |