mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-24 21:43:52 +00:00

It seems that FIND_PACKAGE_HANDLE_STANDARD_ARGS is doing a case-sensitive search for whether the find_package flags included REQUIRED. (cherry-picked from commit f25997665907af3586d99120d5b01db6eaf9f4fd)
12 lines
408 B
CMake
12 lines
408 B
CMake
# Locale GNU history library
|
|
|
|
find_path(HISTORY_INCLUDE_DIR readline/history.h)
|
|
|
|
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)
|
|
|
|
mark_as_advanced(HISTORY_INCLUDE_DIR HISTORY_LIBRARY)
|