Also add curl include directories.
While here, use the variables from FindCURL.cmake
This commit is contained in:
parent
5498836b6f
commit
c7c14f02dd
|
@ -132,7 +132,9 @@ if (UNIX)
|
||||||
# curl is used on both Linux and Mac
|
# curl is used on both Linux and Mac
|
||||||
find_package (CURL)
|
find_package (CURL)
|
||||||
if (CURL_FOUND)
|
if (CURL_FOUND)
|
||||||
list (APPEND libs curl)
|
include_directories(${CURL_INCLUDE_DIRS})
|
||||||
|
list (APPEND libs ${CURL_LIBRARIES})
|
||||||
|
|
||||||
else()
|
else()
|
||||||
message (FATAL_ERROR "Missing library: curl")
|
message (FATAL_ERROR "Missing library: curl")
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Reference in New Issue