Made the cache feature secured in #ifdef block and added it to the http

example too
This commit is contained in:
Sébastien Huss 2016-12-20 22:15:58 +01:00
commit d4f5fddba3
3 changed files with 47 additions and 1 deletions

View file

@ -29,6 +29,7 @@ target_link_libraries(http_examples ${CMAKE_THREAD_LIBS_INIT})
find_package(OpenSSL)
if(OPENSSL_FOUND)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DHAVE_OPENSSL")
include_directories(SYSTEM ${OPENSSL_INCLUDE_DIR})
add_executable(https_examples https_examples.cpp)