externals: Use system curl on Unix/Apple.

This commit is contained in:
bunnei 2017-08-27 10:00:32 -04:00
parent 22fc378fe9
commit 53f9adecf9

View File

@ -57,6 +57,9 @@ if (ENABLE_WEB_SERVICE)
# CPR # CPR
option(BUILD_TESTING OFF) option(BUILD_TESTING OFF)
option(BUILD_CPR_TESTS OFF) option(BUILD_CPR_TESTS OFF)
if(UNIX OR APPLE)
option(USE_SYSTEM_CURL ON)
endif()
add_subdirectory(cpr) add_subdirectory(cpr)
target_include_directories(cpr INTERFACE ./cpr/include) target_include_directories(cpr INTERFACE ./cpr/include)