Skip to content

Commit f260764

Browse files
committed
Merge branch 'PHP-8.3' into PHP-8.4
2 parents 8e23a1b + 4e0c472 commit f260764

File tree

1 file changed

+0
-40
lines changed

1 file changed

+0
-40
lines changed

cmake/ext/readline/CMakeLists.txt

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -141,43 +141,3 @@ cmake_push_check_state(RESET)
141141
cmake_pop_check_state()
142142

143143
configure_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-
]]#

0 commit comments

Comments
 (0)