mirror of
https://github.com/GerbilSoft/rom-properties.git
synced 2025-06-19 03:55:43 -04:00

CMake 3.17's FIND_PACKAGE() is complaining that the package name doesn't match the filename. Rename the filenames to match.
23 lines
835 B
CMake
23 lines
835 B
CMake
# Find the Nettle library.
|
|
# Reference: https://github.com/tatsuhiro-t/wslay/blob/9fe71b1d77823fbca70538bb88a56aec61fecfb3/cmake/FindNettle.cmake
|
|
|
|
# NETTLE_INCLUDE_DIRS - where to find <nettle/sha.h>, etc.
|
|
# NETTLE_LIBRARIES - List of libraries when using libnettle.
|
|
# NETTLE_FOUND - True if libnettle found.
|
|
if(NETTLE_INCLUDE_DIRS)
|
|
# Already in cache, be silent
|
|
set(NETTLE_FIND_QUIETLY YES)
|
|
endif()
|
|
|
|
find_path(NETTLE_INCLUDE_DIRS nettle/md5.h nettle/ripemd160.h nettle/sha.h)
|
|
find_library(NETTLE_LIBRARY NAMES nettle libnettle)
|
|
|
|
# handle the QUIETLY and REQUIRED arguments and set NETTLE_FOUND to TRUE if
|
|
# all listed variables are TRUE
|
|
include(FindPackageHandleStandardArgs)
|
|
find_package_handle_standard_args(NETTLE DEFAULT_MSG NETTLE_LIBRARY NETTLE_INCLUDE_DIRS)
|
|
|
|
if(NETTLE_FOUND)
|
|
set(NETTLE_LIBRARIES ${NETTLE_LIBRARY})
|
|
endif()
|