From 4bf113b5c45a3ab4563e2aefb1ee663557befe03 Mon Sep 17 00:00:00 2001 From: tcezard Date: Fri, 11 Oct 2024 15:56:01 +0100 Subject: [PATCH] Do not search for curl on Windows --- CMakeLists.txt | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b1d20f1c..ea780641 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -94,10 +94,12 @@ if(Boost_FOUND) include_directories(${Boost_INCLUDE_DIRS}) endif() -find_package(CURL REQUIRED) -if(CURL_FOUND) - message("CURL_INCLUDE_DIRS: ${CURL_INCLUDE_DIRS}") - include_directories(${CURL_INCLUDE_DIRS}) +if (NOT WINDOWS) + find_package(CURL REQUIRED) + if(CURL_FOUND) + message("CURL_INCLUDE_DIRS: ${CURL_INCLUDE_DIRS}") + include_directories(${CURL_INCLUDE_DIRS}) + endif() endif() message("Boost_LIBRARIES: ${Boost_LIBRARIES}")