c2a0c32b3e
Conflicts: .travis.yml CMakeLists.txt README.txt build/android/Makefile cmake/Modules/FindCURL.cmake cmake/Modules/FindGettextLib.cmake cmake/Modules/FindOpenGLES2.cmake cmake/Modules/GenerateVersion.cmake misc/winresource.rc src/CMakeLists.txt src/client/clientlauncher.cpp src/cmake_config.h.in src/config.h src/debug.cpp src/emerge.cpp src/game.cpp src/guiEngine.cpp src/httpfetch.cpp src/jthread/CMakeLists.txt src/lua/CMakeLists.txt src/main.cpp src/server.cpp
24 lines
588 B
CMake
24 lines
588 B
CMake
mark_as_advanced(CURL_LIBRARY CURL_INCLUDE_DIR)
|
|
|
|
find_library(CURL_LIBRARY NAMES curl)
|
|
find_path(CURL_INCLUDE_DIR NAMES curl/curl.h)
|
|
|
|
set(CURL_REQUIRED_VARS CURL_LIBRARY CURL_INCLUDE_DIR)
|
|
|
|
if(WIN32)
|
|
if(STATIC_BUILD)
|
|
SET(CURL_FOUND TRUE)
|
|
else()
|
|
find_file(CURL_DLL NAMES libcurl-4.dll
|
|
PATHS
|
|
"C:/Windows/System32"
|
|
DOC "Path to the cURL DLL (for installation)")
|
|
mark_as_advanced(CURL_DLL)
|
|
set(CURL_REQUIRED_VARS ${CURL_REQUIRED_VARS} CURL_DLL)
|
|
endif()
|
|
endif()
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
find_package_handle_standard_args(CURL DEFAULT_MSG ${CURL_REQUIRED_VARS})
|
|
|