Skip to content

Commit

Permalink
cmake: don't use FindOpenSSL on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
julianoes committed Jan 9, 2025
1 parent 83199df commit 1f9111f
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 2 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 5 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ include(../cmake/compiler_flags.cmake)
find_package(Threads REQUIRED)

if(NOT HUNTER_ENABLED)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../cmake/Modules")
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../cmake/Modules/common")

if(NOT MSVC)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../cmake/Modules/non-msvc")
endif()
endif()

# This will noop if hunter is not enabled
Expand Down
2 changes: 1 addition & 1 deletion third_party/curl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ elseif(CMAKE_CROSSCOMPILING) # This assumes we use dockcross
endif()

if(NOT MSVC)
set(MODULES_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../../cmake/Modules")
set(MODULES_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../../cmake/Modules/non-msvc")
message(STATUS "cmake modules path: ${MODULES_PATH}")

list(APPEND CMAKE_ARGS
Expand Down

0 comments on commit 1f9111f

Please sign in to comment.