File tree Expand file tree Collapse file tree 1 file changed +0
-40
lines changed Expand file tree Collapse file tree 1 file changed +0
-40
lines changed Original file line number Diff line number Diff line change @@ -141,43 +141,3 @@ cmake_push_check_state(RESET)
141141cmake_pop_check_state()
142142
143143configure_file (cmake/config.h.in config.h)
144-
145- # TODO: Editline/Readline dependent libraries shouldn't be linked on this level.
146- # Recheck if this is really needed. Either move to find modules or remove it.
147- # Also, for example, Editline with Autoconf integration has even more thorough
148- # dependencies checked in current version.
149-
150- #[[
151- set(CURSES_NEED_NCURSES TRUE)
152- find_package(Curses)
153- set_package_properties(
154- Curses
155- PROPERTIES
156- TYPE REQUIRED
157- PURPOSE "Necessary to enable the readline extension."
158- )
159-
160- # The CMake's Curses find module, doesn't define IMPORTED target yet.
161- if(CURSES_FOUND AND NOT TARGET Curses::Curses)
162- add_library(Curses::Curses INTERFACE IMPORTED)
163-
164- set_target_properties(
165- Curses::Curses
166- PROPERTIES
167- INTERFACE_LINK_LIBRARIES "${CURSES_LIBRARIES}"
168- INTERFACE_INCLUDE_DIRECTORIES "${CURSES_INCLUDE_DIRS}"
169- INTERFACE_COMPILE_OPTIONS "${CURSES_CFLAGS}"
170- )
171- endif()
172-
173- target_link_libraries(php_ext_readline PRIVATE Curses::Curses)
174-
175- # TODO: Check for the obsolescent termcap library more properly.
176- if(NOT CURSES_FOUND)
177- check_library_exists(termcap, tgetent "" _have_termcap_library)
178-
179- if(_have_termcap_library)
180- target_link_libraries(php_ext_readline PRIVATE termcap)
181- endif()
182- endif()
183- ]]#
You can’t perform that action at this time.
0 commit comments