aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsapier <sapier AT gmx DOT net>2013-11-04 17:49:33 +0100
committerkwolekr <kwolekr@minetest.net>2013-11-17 02:28:39 -0500
commit533785ec9a95de696c57d0dc2a17947acfb0dc46 (patch)
tree98073e984441dc560c017a339efb9863aee890d3
parent3985c01ad71159b888677d0fe2019d7a05debeed (diff)
downloadminetest-533785ec9a95de696c57d0dc2a17947acfb0dc46.tar.gz
minetest-533785ec9a95de696c57d0dc2a17947acfb0dc46.tar.bz2
minetest-533785ec9a95de696c57d0dc2a17947acfb0dc46.zip
Add CURL_DLL search to show up CURL_DLL in cmake gui and don't silently ignore missing CURL_DLL
-rw-r--r--cmake/Modules/FindCURL.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/cmake/Modules/FindCURL.cmake b/cmake/Modules/FindCURL.cmake
index 3644d192e..975b8088c 100644
--- a/cmake/Modules/FindCURL.cmake
+++ b/cmake/Modules/FindCURL.cmake
@@ -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 )
@@ -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}")