12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- message(STATUS "***** Find hiredis Library *****")
- unset(hiredis_INCLUDE_DIR CACHE)
- unset(INCLUDE_PATH)
- find_path(INCLUDE_PATH
- NAMES hiredis/hiredis.h
- PATHS ${CMAKE_CURRENT_LIST_DIR}/include
- NO_DEFAULT_PATH
- )
- list(APPEND hiredis_INCLUDE_DIR ${INCLUDE_PATH})
- if(CMAKE_SYSTEM_NAME MATCHES "Windows")
- message(WARNING "Windows is not supported")
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- elseif(CMAKE_SYSTEM_NAME MATCHES "Linux")
- list(APPEND hiredis_LIBRARY ${CMAKE_CURRENT_LIST_DIR}/lib/linux/libhiredis.so)
- endif()
- if(hiredis_INCLUDE_DIR AND hiredis_LIBRARY)
- set(hiredis_FOUND TRUE)
- set(hiredis_VERSION "1.1.0")
- else()
- set(hiredis_FOUND FALSE)
- endif()
- message(STATUS "include : hiredis_INCLUDE_DIR")
- message(STATUS "Library : hiredis_LIBRARY")
- message(STATUS "---------------------------------")
|