From 43f428dd87e4d4ba5037a12cb7d79bc4d8462fdf Mon Sep 17 00:00:00 2001 From: Nicholas Frizzell Date: Fri, 28 Jul 2023 16:36:34 -0400 Subject: [PATCH] Restore CMAKE_MODULE_PATH after temporarily setting it to be empty --- package-system/OpenSSL/FindOpenSSL.cmake.Linux.template | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package-system/OpenSSL/FindOpenSSL.cmake.Linux.template b/package-system/OpenSSL/FindOpenSSL.cmake.Linux.template index 157d6729..92e8dc0f 100644 --- a/package-system/OpenSSL/FindOpenSSL.cmake.Linux.template +++ b/package-system/OpenSSL/FindOpenSSL.cmake.Linux.template @@ -17,9 +17,10 @@ set(CRYPTO_TARGETNAME "OpenSSL::Crypto") if (LY_SYSTEM_PACKAGE_OpenSSL) # We need to temporarily override the CMAKE_MODULE_PATH to force it to search in the system directories + set(CMAKE_MODULE_PATH_TMP $${CMAKE_MODULE_PATH}) set(CMAKE_MODULE_PATH "") find_package(OpenSSL) - unset(CMAKE_MODULE_PATH) + set(CMAKE_MODULE_PATH $${CMAKE_MODULE_PATH_TMP}) if (NOT OpenSSL_FOUND) message(FATAL_ERROR "Compiling on linux requires the development headers for OpenSSL. Try using your package manager to install the OpenSSL development libraries following https://wiki.openssl.org/index.php/Libssl_API")