Skip to content

Commit 9a2b2e2

Browse files
authored
Set OPENSSL_ROOT_DIR so find_package(OpenSSL) works (#107)
1 parent 584df30 commit 9a2b2e2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ if(result)
5151
message(FATAL_ERROR "CMake step for OpenSSL failed: ${result}")
5252
endif()
5353

54+
# This makes sure that find_package(OpenSSL) finds the version we built
55+
set(OPENSSL_ROOT_DIR "${CMAKE_INSTALL_PREFIX}")
56+
5457
if(UNIX AND NOT APPLE)
5558
configure_file(External_libuuid.cmake.in libuuid-download/CMakeLists.txt @ONLY)
5659
execute_process(COMMAND ${CMAKE_COMMAND} -G "${CMAKE_GENERATOR}" -DCMAKE_C_COMPILER=${CMAKE_C_COMPILER}

0 commit comments

Comments
 (0)