Skip to content

Commit

Permalink
More tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
bigfug committed Mar 8, 2024
1 parent 94a62d9 commit eb8d40c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/cmake-build.yml
Expand Up @@ -31,18 +31,21 @@ jobs:
qt_host: windows
qt_arch: win64_msvc2019_64
cpack_generators: -DCPACK_BINARY_NSIS=TRUE -DCPACK_BINARY_ZIP=TRUE
qt_tools: 'tools_opensslv3_x64'
- os: ubuntu-latest
c_compiler: gcc
cpp_compiler: g++
qt_host: linux
qt_arch: gcc_64
cpack_generators: -DCPACK_BINARY_TGZ=TRUE -DCPACK_BINARY_TZ=FALSE -DCPACK_BINARY_STGZ=FALSE
qt_tools: ''
- os: macos-latest
c_compiler: clang
cpp_compiler: clang++
qt_host: mac
qt_arch: clang_64
cpack_generators: -DCPACK_BINARY_DRAGNDROP=TRUE -DCPACK_BINARY_ZIP=TRUE -DCPACK_BINARY_TGZ=FALSE -DCPACK_BINARY_STGZ=FALSE
qt_tools: ''
exclude:
- os: windows-latest
c_compiler: gcc
Expand Down Expand Up @@ -78,7 +81,7 @@ jobs:
host: ${{ matrix.qt_host }}
target: 'desktop'
arch: ${{ matrix.qt_arch }}
tools: 'tools_opensslv3_x64'
tools: ${{ matrix.qt_tools }}

- name: Configure CMake
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
Expand Down
12 changes: 5 additions & 7 deletions CMakeLists.txt
Expand Up @@ -115,12 +115,12 @@ get_filename_component( QT_BASE "${QT_DIR}/../../../../../" ABSOLUTE )

message( "QT_BASE=${QT_BASE}" )

set( OPENSSL_ROOT_DIR "" CACHE PATH "Path to OpenSSL" )
find_package(Qt6 COMPONENTS Core QUIET)

if( WIN32 )
if (Qt6_FOUND)
set( OPENSSL_ROOT_DIR "${QT_BASE}/tools/OpenSSLv3/Win_x64" CACHE PATH "Path to OpenSSL" )
endif()
if( WIN32 AND Qt6_FOUND)
set( OPENSSL_ROOT_DIR "${QT_BASE}/tools/OpenSSLv3/Win_x64" CACHE PATH "Path to OpenSSL" )
else()
set( OPENSSL_ROOT_DIR "" CACHE PATH "Path to OpenSSL" )
endif()

find_package( OpenSSL )
Expand All @@ -129,8 +129,6 @@ if( OPENSSL_FOUND )
message( "OpenSSL: ${OPENSSL_VERSION} ${OPENSSL_ROOT_DIR}" )

if( WIN32 )
find_package(Qt6 COMPONENTS Core QUIET)

if (Qt6_FOUND)
find_file( OPEN_SSL_CRYPTO_DLL
libcrypto-3-x64.dll
Expand Down

0 comments on commit eb8d40c

Please sign in to comment.