From 919205e6aa11185c886fd28256fdf2355497501d Mon Sep 17 00:00:00 2001 From: Oleg Morozenkov Date: Thu, 26 Jul 2018 13:43:16 +0300 Subject: Update echobot-curl-client/CMakeLists.txt --- samples/echobot-curl-client/CMakeLists.txt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'samples/echobot-curl-client') diff --git a/samples/echobot-curl-client/CMakeLists.txt b/samples/echobot-curl-client/CMakeLists.txt index 40e3200..75d9c58 100644 --- a/samples/echobot-curl-client/CMakeLists.txt +++ b/samples/echobot-curl-client/CMakeLists.txt @@ -8,8 +8,11 @@ find_package(Threads REQUIRED) find_package(OpenSSL REQUIRED) find_package(Boost COMPONENTS system REQUIRED) find_package(CURL) -include_directories(/usr/local/include ${OPENSSL_INCLUDE_DIR} ${Boost_INCLUDE_DIR} ${CURL_INCLUDE_DIRS}) -add_definitions(-DHAVE_CURL) +include_directories(/usr/local/include ${OPENSSL_INCLUDE_DIR} ${Boost_INCLUDE_DIR}) +if (CURL_FOUND) + include_directories(${CURL_INCLUDE_DIRS}) + add_definitions(-DHAVE_CURL) +endif() add_executable(echobot-curl-client src/main.cpp) -- cgit v1.2.3