Skip to content

Commit

Permalink
Add FindCrypt.cmake module
Browse files Browse the repository at this point in the history
This allows to find libcrypt.so by full path, and avoid being dependent
on the compiler directory search.

Re ECFLOW-1987
  • Loading branch information
marcosbento committed Dec 16, 2024
1 parent e21f499 commit 62818eb
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions cmake/Dependencies.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,20 @@ if (ENABLE_SSL)
endif()


# =========================================================================================
# Crypt
# =========================================================================================
ecbuild_info( "Locating Crypt" )

find_package(Crypt)

ecbuild_info( "Crypt details:" )
ecbuild_info( " * Crypt_FOUND : ${Crypt_FOUND}" )
ecbuild_info( " * Crypt_INCLUDE_DIRS : ${Crypt_INCLUDE_DIRS}" )
ecbuild_info( " * Crypt_LIBRARIES : ${Crypt_LIBRARIES}" )

ecbuild_info( "Found Crypt at ${Crypt_INCLUDE_DIRS}" )

# =========================================================================================
# Dependency: Qt
# =========================================================================================
Expand Down Expand Up @@ -362,15 +376,3 @@ else()
ecbuild_info("Clang-Format not found")
ecbuild_info(" WARNING: No formatting targets will be defined!")
endif ()

# =========================================================================================
# Crypt
# =========================================================================================
ecbuild_info( "Locating Crypt" )

find_package(Crypt)

ecbuild_info( "Crypt details:" )
ecbuild_info( " * Crypt_FOUND : ${Crypt_FOUND}" )
ecbuild_info( " * Crypt_INCLUDE_DIRS : ${Crypt_INCLUDE_DIRS}" )
ecbuild_info( " * Crypt_LIBRARIES : ${Crypt_LIBRARIES}" )

0 comments on commit 62818eb

Please sign in to comment.