Skip to content

Commit 348773e

Browse files
fix issue for rocky 8 2023 where the openssl comes from the system
Signed-off-by: Cédrik Fuoco <[email protected]>
1 parent 3b929cb commit 348773e

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

cmake/dependencies/python3.cmake

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,14 @@ ENDIF()
279279
SET(_requirements_install_command
280280
${CMAKE_COMMAND} -E env
281281
${_otio_debug_env}
282-
"OPENSSL_DIR=${RV_DEPS_OPENSSL_INSTALL_DIR}"
282+
)
283+
284+
# Only set OPENSSL_DIR if we built OpenSSL ourselves (not for Rocky Linux 8 CY2023 which uses system OpenSSL)
285+
IF(DEFINED RV_DEPS_OPENSSL_INSTALL_DIR)
286+
LIST(APPEND _requirements_install_command "OPENSSL_DIR=${RV_DEPS_OPENSSL_INSTALL_DIR}")
287+
ENDIF()
288+
289+
LIST(APPEND _requirements_install_command
283290
"CMAKE_ARGS=-DPYTHON_LIBRARY=${_python3_cmake_library} -DPYTHON_INCLUDE_DIR=${_include_dir} -DPYTHON_EXECUTABLE=${_python3_executable}"
284291
"${_python3_executable}" -m pip install --upgrade --no-cache-dir --force-reinstall --no-binary :all: -r "${_requirements_output_file}"
285292
)

0 commit comments

Comments
 (0)