From 3900fc6995248e129d0406a39aa9fb765937795a Mon Sep 17 00:00:00 2001 From: Geoff Hutchison Date: Thu, 8 Feb 2024 13:20:05 -0500 Subject: [PATCH] One more time... Signed-off-by: Geoff Hutchison --- .github/workflows/build_cmake.yml | 6 ++++-- avogadro/lastinstall/CMakeLists.txt | 15 +++------------ cmake/AvogadroCPack.cmake | 4 ++-- 3 files changed, 9 insertions(+), 16 deletions(-) diff --git a/.github/workflows/build_cmake.yml b/.github/workflows/build_cmake.yml index e2e53fd0..533aa877 100644 --- a/.github/workflows/build_cmake.yml +++ b/.github/workflows/build_cmake.yml @@ -132,7 +132,8 @@ jobs: - name: Install Qt uses: jurplel/install-qt-action@v3 with: - cached: ${{ steps.cache-qt.outputs.cache-hit }} + aqtversion: '==3.1.*' + cache: true version: ${{ env.QT_VERSION }} - name: Install OpenSSL (Win64) @@ -140,9 +141,10 @@ jobs: uses: jurplel/install-qt-action@v3 with: aqtversion: '==3.1.*' + cache: true host: 'windows' target: 'desktop' - toolsOnly: 'true' + tools-only: 'true' tools: 'tools_opensslv3_x64' - name: Configure MSVC Command Prompt diff --git a/avogadro/lastinstall/CMakeLists.txt b/avogadro/lastinstall/CMakeLists.txt index 39a95d6c..6bc695a9 100644 --- a/avogadro/lastinstall/CMakeLists.txt +++ b/avogadro/lastinstall/CMakeLists.txt @@ -35,18 +35,9 @@ if((APPLE OR WIN32) AND NOT ${CMAKE_VERSION} VERSION_LESS 2.8.8) # grab OpenSSL for Windows if(WIN32) - find_package(OpenSSL) - message(STATUS "FindSSL found: ${OPENSSL_FOUND}") - message(STATUS "FindSSL include dir: ${OPENSSL_INCLUDE_DIR}") - message(STATUS "FindSSL crypto lib: ${OPENSSL_CRYPTO_LIBRARY}") - message(STATUS "FindSSL Crypto dependencies: ${OPENSSL_CRYPTO_LIBRARIES}") - message(STATUS "FindSSL SSL lib: ${OPENSSL_SSL_LIBRARY}") - message(STATUS "FindSSL SSL dependencies: ${OPENSSL_SSL_LIBRARIES}") - message(STATUS "FindSSL ALL : ${OPENSSL_LIBRARIES}") - message(STATUS "OpenSSL root directory: ${OPENSSL_ROOT_DIR}") - message(STATUS "Environment OPENSSL_ROOT_DIR: $ENV{OPENSSL_ROOT_DIR}") - if (DEFINED OPENSSL_ROOT_DIR) - message(STATUS "OpenSSL root directory: ${OPENSSL_ROOT_DIR}") + if(EXISTS "${Qt5_Dir}/../../Tools/OpenSSLv3/Win_x64/") + set(OPENSSL_ROOT_DIR "${Qt5_Dir}/../../Tools/OpenSSLv3/Win_x64/") + message(STATUS "Using OpenSSL from ${OPENSSL_ROOT_DIR}") file(GLOB OPENSSL_DLL ${OPENSSL_ROOT_DIR}/bin/*.dll) install(FILES ${OPENSSL_DLL} DESTINATION ${INSTALL_RUNTIME_DIR}) endif() diff --git a/cmake/AvogadroCPack.cmake b/cmake/AvogadroCPack.cmake index c8ac781b..4fb243f4 100644 --- a/cmake/AvogadroCPack.cmake +++ b/cmake/AvogadroCPack.cmake @@ -54,9 +54,9 @@ if(INSTALL_BUNDLE_FILES) # grab OpenSSL for Windows if(WIN32) if(EXISTS "D:/a/avogadroapp/Qt/Tools/OpenSSLv3/Win_x64/") - message(STATUS "Using OpenSSL from $ENV{OPENSSL_ROOT_DIR}") set(OPENSSL_ROOT_DIR "D:/a/avogadroapp/Qt/Tools/OpenSSLv3/Win_x64") - file(GLOB OPENSSL_DLL $ENV{OPENSSL_ROOT_DIR}/bin/*.dll) + message(STATUS "Using OpenSSL from ${OPENSSL_ROOT_DIR}") + file(GLOB OPENSSL_DLL ${OPENSSL_ROOT_DIR}/bin/*.dll) install(FILES ${OPENSSL_DLL} DESTINATION ${INSTALL_RUNTIME_DIR}) endif() endif()