Skip to content

Commit

Permalink
Fixup cpack options
Browse files Browse the repository at this point in the history
Signed-off-by: Geoff Hutchison <[email protected]>
  • Loading branch information
ghutchis committed Feb 9, 2024
1 parent bbf6598 commit 4c5aa4f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion avogadro/lastinstall/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ if((APPLE OR WIN32) AND NOT ${CMAKE_VERSION} VERSION_LESS 2.8.8)
file(GLOB OPENSSL_DLL ${OPENSSL_ROOT_DIR}/bin/*.dll)
install(FILES ${OPENSSL_DLL} DESTINATION ${INSTALL_RUNTIME_DIR})
endif()
endif()
endif()

set(plugins "")
foreach(plugin ${AvogadroLibs_PLUGINS})
Expand Down
10 changes: 9 additions & 1 deletion cmake/AvogadroCPack.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,16 @@ if(INSTALL_BUNDLE_FILES)

# grab OpenSSL for Windows
if(WIN32)
if(EXISTS "D:/a/avogadroapp/Qt/Tools/OpenSSLv3/Win_x64/")
if(EXISTS "${Qt5_Dir}/../../Tools/OpenSSLv3/Win_x64/")
set(OPENSSL_ROOT_DIR "${Qt5_Dir}/../../Tools/OpenSSLv3/Win_x64/")
elseif(DEFINED $ENV{OPENSSL_ROOT_DIR})
set(OPENSSL_ROOT_DIR $ENV{OPENSSL_ROOT_DIR})
elseif(EXISTS "D:/a/avogadroapp/Qt/Tools/OpenSSLv3/Win_x64/")
set(OPENSSL_ROOT_DIR "D:/a/avogadroapp/Qt/Tools/OpenSSLv3/Win_x64")
elseif(EXISTS "D:/a/avogadrolibs/Qt/Tools/OpenSSLv3/Win_x64/")
set(OPENSSL_ROOT_DIR "D:/a/avogadrolibs/Qt/Tools/OpenSSLv3/Win_x64")
endif()
if (DEFINED OPENSSL_ROOT_DIR)
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})
Expand Down

0 comments on commit 4c5aa4f

Please sign in to comment.