Skip to content

Commit

Permalink
Restore CMAKE_MODULE_PATH after temporarily setting it to be empty
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholas-rh committed Jul 28, 2023
1 parent 8663fef commit 43f428d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package-system/OpenSSL/FindOpenSSL.cmake.Linux.template
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 43f428d

Please sign in to comment.