
It seems that FIND_PACKAGE_HANDLE_STANDARD_ARGS is doing a case-sensitive search for whether the find_package flags included REQUIRED.
11 lines
391 B
CMake
11 lines
391 B
CMake
# OpenSSL crypto library
|
|
|
|
find_path(CRYPTO_INCLUDE_DIR openssl/md5.h)
|
|
|
|
find_library(CRYPTO_LIBRARY crypto)
|
|
|
|
# handle the QUIETLY and REQUIRED arguments and set XXX_FOUND to TRUE if all listed variables are TRUE
|
|
INCLUDE(FindPackageHandleStandardArgs)
|
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Crypto DEFAULT_MSG CRYPTO_LIBRARY CRYPTO_INCLUDE_DIR)
|
|
|
|
mark_as_advanced(CRYPTO_INCLUDE_DIR CRYPTO_LIBRARY)
|