Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add CURL_DLL search to show up CURL_DLL in cmake gui and don't silent…
…ly ignore missing CURL_DLL
  • Loading branch information
sapier authored and kwolekr committed Nov 17, 2013
1 parent 3985c01 commit 533785e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmake/Modules/FindCURL.cmake
Expand Up @@ -20,6 +20,10 @@ if( UNIX )
else( UNIX )
FIND_PATH(CURL_INCLUDE_DIR NAMES curl/curl.h) # Look for the header file.
FIND_LIBRARY(CURL_LIBRARY NAMES curl) # Look for the library.
FIND_FILE(CURL_DLL NAMES libcurl.dll
PATHS
"c:/windows/system32"
DOC "Path of the cURL dll (for installation)")
INCLUDE(FindPackageHandleStandardArgs) # handle the QUIETLY and REQUIRED arguments and set CURL_FOUND to TRUE if
FIND_PACKAGE_HANDLE_STANDARD_ARGS(CURL DEFAULT_MSG CURL_LIBRARY CURL_INCLUDE_DIR) # all listed variables are TRUE
endif( UNIX )
Expand All @@ -40,3 +44,4 @@ endif ( WIN32 )

MESSAGE(STATUS "CURL_INCLUDE_DIR = ${CURL_INCLUDE_DIR}")
MESSAGE(STATUS "CURL_LIBRARY = ${CURL_LIBRARY}")
MESSAGE(STATUS "CURL_DLL = ${CURL_DLL}")

0 comments on commit 533785e

Please sign in to comment.