summaryrefslogtreecommitdiff
path: root/samples/echobot-curl-client
diff options
context:
space:
mode:
Diffstat (limited to 'samples/echobot-curl-client')
-rw-r--r--samples/echobot-curl-client/CMakeLists.txt7
1 files changed, 5 insertions, 2 deletions
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)