summaryrefslogtreecommitdiff
path: root/samples/echobot-curl-client
diff options
context:
space:
mode:
authorOleg Morozenkov <m@oleg.rocks>2018-07-26 13:43:16 +0300
committerOleg Morozenkov <m@oleg.rocks>2018-07-26 13:43:16 +0300
commit919205e6aa11185c886fd28256fdf2355497501d (patch)
tree6f6572fe7da91c600954f87f4dae2c2e6166b33c /samples/echobot-curl-client
parentccd8c507d029f49559022b3b86bcbd4d7f1594e9 (diff)
Update echobot-curl-client/CMakeLists.txt
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)