Skip to content

Commit

Permalink
Do not search for curl on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
tcezard committed Oct 11, 2024
1 parent 07d52a3 commit 4bf113b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
Expand Down

0 comments on commit 4bf113b

Please sign in to comment.