FindCurses: use path_suffixes rather than direct name

parent dd8ee82e
Pipeline #180831 waiting for manual action with stages
in 3 minutes and 34 seconds
......@@ -136,8 +136,9 @@ if(CURSES_USE_NCURSES)
)
else()
find_path(CURSES_INCLUDE_PATH
NAMES ncurses/ncurses.h ncurses/curses.h ncurses.h curses.h
NAMES ncurses.h curses.h
PATHS ${CURSES_NCURSES_INCLUDE_PATH}
PATH_SUFFIXES ncurses
NO_DEFAULT_PATH
)
endif()
......@@ -152,8 +153,9 @@ if(CURSES_USE_NCURSES)
else()
set(CURSES_TINFO_LIBRARY_NAME tinfo)
find_path(CURSES_INCLUDE_PATH
NAMES ncurses/ncurses.h ncurses/curses.h ncurses.h curses.h
NAMES ncurses.h curses.h
HINTS "${_cursesParentDir}/include"
PATH_SUFFIXES ncurses
)
endif()
......@@ -184,6 +186,7 @@ else()
find_path(CURSES_INCLUDE_PATH
NAMES curses.h
HINTS "${_cursesParentDir}/include"
PATH_SUFFIXES ncurses
)
endif()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment