Make CMake error-out if required libraries aren't found
It seems that FIND_PACKAGE_HANDLE_STANDARD_ARGS is doing a case-sensitive search for whether the find_package flags included REQUIRED.
This commit is contained in:
parent
15c331281f
commit
f259976659
3 changed files with 3 additions and 3 deletions
|
@ -6,6 +6,6 @@ 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)
|
||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Crypto DEFAULT_MSG CRYPTO_LIBRARY CRYPTO_INCLUDE_DIR)
|
||||
|
||||
mark_as_advanced(CRYPTO_INCLUDE_DIR CRYPTO_LIBRARY)
|
||||
|
|
|
@ -6,6 +6,6 @@ find_library(HISTORY_LIBRARY history)
|
|||
|
||||
# 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(HISTORY DEFAULT_MSG HISTORY_LIBRARY HISTORY_INCLUDE_DIR)
|
||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(History DEFAULT_MSG HISTORY_LIBRARY HISTORY_INCLUDE_DIR)
|
||||
|
||||
mark_as_advanced(HISTORY_INCLUDE_DIR HISTORY_LIBRARY)
|
||||
|
|
|
@ -91,6 +91,6 @@ ENDIF()
|
|||
|
||||
# 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(VORBISFILE DEFAULT_MSG VORBISFILE_LIBRARIES VORBISFILE_INCLUDE_DIR)
|
||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(VorbisFile DEFAULT_MSG VORBISFILE_LIBRARIES VORBISFILE_INCLUDE_DIR)
|
||||
|
||||
mark_as_advanced(VORBISFILE_INCLUDE_DIR VORBISFILE_LIBRARIES VORBISFILE_LIBRARY VORBISFILE_LIBRARY_DEBUG)
|
||||
|
|
Loading…
Add table
Reference in a new issue