aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2012-12-17 20:57:30 +0100
committerIlya Zhuravlev <zhuravlevilya@ya.ru>2012-12-18 21:52:56 +0400
commit05b58501f24ea0bcb6072f66f4ba3aa3ba907ab9 (patch)
tree5585a21a415d3cc7719547cacf62727d04b68c40 /src
parent29c17c14f1ef42f8080a44b1e3308f34de8b5df2 (diff)
downloadminetest-05b58501f24ea0bcb6072f66f4ba3aa3ba907ab9.tar.gz
minetest-05b58501f24ea0bcb6072f66f4ba3aa3ba907ab9.tar.bz2
minetest-05b58501f24ea0bcb6072f66f4ba3aa3ba907ab9.zip
Tweak CMake files for cURL
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 38410f7d2..107f580ce 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -12,7 +12,9 @@ if (NOT ENABLE_CURL)
mark_as_advanced(CLEAR CURL_LIBRARY CURL_INCLUDE_DIR)
endif(NOT ENABLE_CURL)
-find_package(CURL)
+if( ENABLE_CURL )
+ find_package(CURL)
+endif( ENABLE_CURL )
set(USE_CURL 0)
if (CURL_FOUND AND ENABLE_CURL)
message(STATUS "cURL support enabled")
@@ -436,6 +438,9 @@ if(WIN32)
if(VORBISFILE_DLL)
install(FILES ${VORBISFILE_DLL} DESTINATION ${BINDIR})
endif()
+ if(CURL_DLL)
+ install(FILES ${CURL_DLL} DESTINATION ${BINDIR})
+ endif()
endif()
endif()