Skip to content

Commit

Permalink
iox-#2099 Skip the introspection build if the curses library is not f…
Browse files Browse the repository at this point in the history
…ound (e.g. ROS 2 RHEL)
  • Loading branch information
mossmaurice committed Nov 28, 2023
1 parent f0622f1 commit b506099
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tools/introspection/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,11 @@ endif()
# cmake doesn't find ncurses under QNX; let the compiler complain if the header is missing
if(NOT QNX)
SET(CURSES_USE_NCURSES TRUE)
find_package(Curses REQUIRED)
find_package(Curses QUIET)
if(NOT CURSES_FOUND)
message(STATUS "The build of the introspection client is skipped due to missing the curses library")
return()
endif()
if(${CURSES_HAVE_NCURSES_H} MATCHES ".*-NOTFOUND")
message(SEND_ERROR "ncurses header not found! Please install libncurses5-dev!")
endif(${CURSES_HAVE_NCURSES_H} MATCHES ".*-NOTFOUND")
Expand Down

0 comments on commit b506099

Please sign in to comment.