Skip to content

Commit

Permalink
Fix find_package(OpenSSL).
Browse files Browse the repository at this point in the history
It's not really clear why the host paths need to be searched for
libraries and includes, but it seems that they do.
  • Loading branch information
kring committed Jul 25, 2024
1 parent 89eef57 commit 00a26bd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions extern/unreal-android-toolchain.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ SET(CMAKE_ANDROID_STL_TYPE c++_shared)
# search for programs in the build host directories
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
# for libraries and headers in the target directories
SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY BOTH)
SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE BOTH)
SET(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE BOTH)

SET(HTTPLIB_USE_OPENSSL_IF_AVAILABLE OFF)
Expand Down
2 changes: 2 additions & 0 deletions extern/unreal-ios-toolchain.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ set(CMAKE_OSX_ARCHITECTURES arm64)
set(CMAKE_SYSTEM_PROCESSOR arm64)
set(CMAKE_OSX_DEPLOYMENT_TARGET 15)
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY BOTH)
SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE BOTH)
SET(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE BOTH)
4 changes: 2 additions & 2 deletions extern/unreal-linux-toolchain.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ SET(CMAKE_EXE_LINKER_FLAGS "-fuse-ld=lld -target x86_64-unknown-linux-gnu --sysr
# search for programs in the build host directories
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
# for libraries and headers in the target directories
SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY BOTH)
SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE BOTH)
SET(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE BOTH)

0 comments on commit 00a26bd

Please sign in to comment.