Skip to content

Commit

Permalink
make libgpm optional (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
bjia56 authored Dec 23, 2024
1 parent 3b0a1bd commit c9370e0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cmake/extensions/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -817,8 +817,12 @@ add_python_extension(${bz2_${PY_VERSION_MAJOR}_NAME}
set(curses_common_REQUIRES CURSES_LIBRARIES)
set(curses_common_LIBRARIES ${CURSES_LIBRARIES})
if(WITH_STATIC_DEPENDENCIES)
list(APPEND curses_common_REQUIRES TINFO_LIBRARY GPM_LIBRARY)
list(APPEND curses_common_LIBRARIES ${TINFO_LIBRARY} ${GPM_LIBRARY})
list(APPEND curses_common_REQUIRES TINFO_LIBRARY)
list(APPEND curses_common_LIBRARIES ${TINFO_LIBRARY})
if(GPM_LIBRARY)
list(APPEND curses_common_REQUIRES GPM_LIBRARY)
list(APPEND curses_common_LIBRARIES ${GPM_LIBRARY})
endif()
endif()
add_python_extension(_curses_panel
REQUIRES ${curses_common_REQUIRES} PANEL_LIBRARIES "HAVE_PANEL_H OR HAVE_NCURSES_PANEL_H"
Expand Down

0 comments on commit c9370e0

Please sign in to comment.