Skip to content

Commit

Permalink
Change libtinfo fatal error to a warning also on dynamic build
Browse files Browse the repository at this point in the history
ncurses builds it as a built-in module by default, and this is how
it is deployed on most systems.
  • Loading branch information
orgads committed Sep 11, 2024
1 parent 3c1da38 commit 9812bd1
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -235,11 +235,7 @@ if(CURSES_LIBRARY)
target_link_libraries(sipp ${TINFO_LIBRARY})
target_link_libraries(sipp_unittest ${TINFO_LIBRARY})
else()
if(BUILD_STATIC)
message(WARNING "libtinfo.a was not found -- please install package if linking fails")
else()
message(FATAL_ERROR "libtinfo.so was not found -- please install package")
endif(BUILD_STATIC)
message(WARNING "libtinfo was not found -- please install package if linking fails")
endif(TINFO_LIBRARY)
endif(CMAKE_SYSTEM_NAME STREQUAL "Linux")
if(CURSES_LIBRARY_INCLUDE_DIRS OR TINFO_LIBRARY_INCLUDE_DIRS)
Expand Down

0 comments on commit 9812bd1

Please sign in to comment.