mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-01-19 03:57:14 +01:00
Update CMakeLists.txt
This commit is contained in:
parent
e7f95ce9e6
commit
f69769d32b
7
vendor/CPR/CMakeLists.txt
vendored
7
vendor/CPR/CMakeLists.txt
vendored
@ -48,14 +48,11 @@ add_library(CPR STATIC
|
|||||||
target_include_directories(CPR PRIVATE ${CMAKE_CURRENT_LIST_DIR}/cpr)
|
target_include_directories(CPR PRIVATE ${CMAKE_CURRENT_LIST_DIR}/cpr)
|
||||||
target_include_directories(CPR PUBLIC ${CMAKE_CURRENT_LIST_DIR}/include)
|
target_include_directories(CPR PUBLIC ${CMAKE_CURRENT_LIST_DIR}/include)
|
||||||
# Find CURK
|
# Find CURK
|
||||||
find_package(CURL REQUIRED COMPONENTS HTTP HTTPS SSL)
|
find_package(CURL REQUIRED)
|
||||||
if (CURL_FOUND)
|
if (CURL_FOUND)
|
||||||
set(SSL_ENABLED ON CACHE INTERNAL "" FORCE)
|
set(SSL_ENABLED ON CACHE INTERNAL "" FORCE)
|
||||||
else()
|
else()
|
||||||
find_package(CURL REQUIRED COMPONENTS HTTP)
|
message(FATAL_ERROR "Unable to find CURL library.")
|
||||||
if(CURL_FOUND)
|
|
||||||
set(SSL_ENABLED OFF CACHE INTERNAL "" FORCE)
|
|
||||||
endif()
|
|
||||||
endif()
|
endif()
|
||||||
# Link to CURL
|
# Link to CURL
|
||||||
target_link_libraries(CPR PUBLIC curl)
|
target_link_libraries(CPR PUBLIC curl)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user