Skip to content

Commit

Permalink
Make sure to grab both libcrypto and libssl on Windows
Browse files Browse the repository at this point in the history
Signed-off-by: Geoff Hutchison <[email protected]>
  • Loading branch information
ghutchis committed Feb 5, 2024
1 parent 09fb213 commit 7ada510
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion cmake/AvogadroCPack.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ if(APPLE)
"${AvogadroApp_SOURCE_DIR}/avogadro/icons/avogadro.icns")
set(CPACK_BUNDLE_ICON "${CPACK_PACKAGE_ICON}")

if(${CMAKE_VERSION} VERSION_GREATER "3.19.0")
if(${CMAKE_VERSION} VERSION_GREATER "3.19.0")
# add the codesign options to the package
configure_file("${CMAKE_CURRENT_LIST_DIR}/deploy-osx.cmake.in" "${AvogadroApp_BINARY_DIR}/deploy-osx.cmake" @ONLY)
set(CPACK_PRE_BUILD_SCRIPTS "${AvogadroApp_BINARY_DIR}/deploy-osx.cmake")
Expand Down Expand Up @@ -51,6 +51,12 @@ if(INSTALL_BUNDLE_FILES)
install(DIRECTORY "${AvogadroLibs_DATA_DIR}/avogadro2"
DESTINATION ${INSTALL_DATA_DIR})

if (WIN32)
# copy the OpenSSL DLLs
find_package(OpenSSL REQUIRED)
install(FILES ${OPENSSL_LIBRARIES} DESTINATION ${INSTALL_RUNTIME_DIR})
endif()

# create a list of exe to run fixup_bundle on
set(BUNDLE_EXE_LIST "")

Expand Down

0 comments on commit 7ada510

Please sign in to comment.