You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/x11-libs/libyui-ncurses/files/libyui-ncurses-2.46.4-tinfo...

22 lines
934 B

Fixes building with sys-libs/ncurses[tinfo]
--- cmake/Modules/FindCurses6.cmake.orig 2014-09-25 16:32:20.000000000 +0400
+++ cmake/Modules/FindCurses6.cmake 2014-09-25 16:33:16.000000000 +0400
@@ -11,11 +11,12 @@
FIND_LIBRARY(CURSES6_TINFO_LIBRARY NAMES tinfo PATHS ${path}/ncurses6 ${path} NO_DEFAULT_PATH)
ENDFOREACH()
-SET(CURSES6_LIBRARIES ${CURSES6_NCURSESW_LIBRARY} ${CURSES6_PANELW_LIBRARY})
# tinfo is optional (in 12.1 is not there)
-IF(${CURSES6_TINFO_LIBRARY})
- SET(CURSES6_LIBRARIES "${CURSES6_LIBRARIES} ${CURSES6_TINFO_LIBRARY}")
-ENDIF(${CURSES6_TINFO_LIBRARY})
+IF(NOT ${CURSES6_TINFO_LIBRARY} STREQUAL "CURSES6_TINFO_LIBRARY-NOTFOUND")
+ SET(CURSES6_LIBRARIES ${CURSES6_NCURSESW_LIBRARY} ${CURSES6_PANELW_LIBRARY} ${CURSES6_TINFO_LIBRARY})
+ELSE()
+ SET(CURSES6_LIBRARIES ${CURSES6_NCURSESW_LIBRARY} ${CURSES6_PANELW_LIBRARY})
+ENDIF()
FIND_PATH(CURSES6_INCLUDE_DIR ncurses.h PATH_SUFFIXES ncurses6)