Skip to content

Commit 453965d

Browse files
kouraulcd
authored andcommitted
GH-36707: [C++] Use ARROW_PACKAGE_PREFIX for OPENSSL_ROOT_DIR too (#36710)
### Rationale for this change In general, a CMake package uses `${PACKAGE}_ROOT` variable to detect `PACKAGE` but `FindOpenSSL.cmake` uses `OPENSSL_ROOT_DIR` not `OpenSSL_ROOT`. ### What changes are included in this PR? Set `OPENSSL_ROOT_DIR` explicitly. ### Are these changes tested? Yes. ### Are there any user-facing changes? Yes. * Closes: #36707 Authored-by: Sutou Kouhei <[email protected]> Signed-off-by: Raúl Cumplido <[email protected]>
1 parent 1d5f4cd commit 453965d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cpp/cmake_modules/ThirdpartyToolchain.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,9 @@ if(ARROW_PACKAGE_PREFIX)
138138
if(NOT ENV{Boost_ROOT})
139139
set(ENV{Boost_ROOT} ${ARROW_PACKAGE_PREFIX})
140140
endif()
141+
if(NOT DEFINED OPENSSL_ROOT_DIR)
142+
set(OPENSSL_ROOT_DIR ${ARROW_PACKAGE_PREFIX})
143+
endif()
141144
endif()
142145

143146
# For each dependency, set dependency source to global default, if unset

0 commit comments

Comments
 (0)