Also add curl include directories.

While here, use the variables from FindCURL.cmake
This commit is contained in:
coypu 2018-08-02 15:39:59 +03:00
parent 5498836b6f
commit c7c14f02dd
1 changed files with 3 additions and 1 deletions

View File

@ -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()