typo
[platform/upstream/libzypp.git] / cmake / modules / FindCurl.cmake
1
2 if(CURL_INCLUDE_DIR AND CURL_LIBRARY)
3         # Already in cache, be silent
4         set(CURL_FIND_QUIETLY TRUE)     
5 endif(CURL_INCLUDE_DIR AND CURL_LIBRARY)
6
7 set(CURL_LIBRARY)
8 set(CURL_INCLUDE_DIR)
9
10 FIND_PATH(CURL_INCLUDE_DIR curl/curl.h
11         /usr/include
12         /usr/local/include
13 )
14
15 FIND_LIBRARY(CURL_LIBRARY NAMES curl
16         PATHS
17         /usr/lib
18         /usr/local/lib
19 )
20
21 if(CURL_INCLUDE_DIR AND CURL_LIBRARY)
22    MESSAGE( STATUS "curl found: includes in ${CURL_INCLUDE_DIR}, library in ${CURL_LIBRARY}")
23    set(CURL_FOUND TRUE)
24 else(CURL_INCLUDE_DIR AND CURL_LIBRARY)
25    MESSAGE( STATUS "curl not found")
26 endif(CURL_INCLUDE_DIR AND CURL_LIBRARY)
27
28 MARK_AS_ADVANCED(CURL_INCLUDE_DIR CURL_LIBRARY)