From 00a26bd8823f3e9b69d86ec584eb4580e601ac1b Mon Sep 17 00:00:00 2001 From: Kevin Ring Date: Thu, 25 Jul 2024 10:06:49 -0400 Subject: [PATCH] Fix find_package(OpenSSL). It's not really clear why the host paths need to be searched for libraries and includes, but it seems that they do. --- extern/unreal-android-toolchain.cmake | 4 ++-- extern/unreal-ios-toolchain.cmake | 2 ++ extern/unreal-linux-toolchain.cmake | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/extern/unreal-android-toolchain.cmake b/extern/unreal-android-toolchain.cmake index 05c22af59..d798059d8 100644 --- a/extern/unreal-android-toolchain.cmake +++ b/extern/unreal-android-toolchain.cmake @@ -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) diff --git a/extern/unreal-ios-toolchain.cmake b/extern/unreal-ios-toolchain.cmake index 61bcd85e8..dc9120b7f 100644 --- a/extern/unreal-ios-toolchain.cmake +++ b/extern/unreal-ios-toolchain.cmake @@ -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) diff --git a/extern/unreal-linux-toolchain.cmake b/extern/unreal-linux-toolchain.cmake index 3ae2d8eb4..b52fd39af 100644 --- a/extern/unreal-linux-toolchain.cmake +++ b/extern/unreal-linux-toolchain.cmake @@ -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)