From c7c14f02dd56499ebd049cc391dd14cf26e82911 Mon Sep 17 00:00:00 2001 From: coypu Date: Thu, 2 Aug 2018 15:39:59 +0300 Subject: [PATCH] Also add curl include directories. While here, use the variables from FindCURL.cmake --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c98e468b..f6f6aa72 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -132,7 +132,9 @@ if (UNIX) # curl is used on both Linux and Mac find_package (CURL) if (CURL_FOUND) - list (APPEND libs curl) + include_directories(${CURL_INCLUDE_DIRS}) + list (APPEND libs ${CURL_LIBRARIES}) + else() message (FATAL_ERROR "Missing library: curl") endif()