Skip to content

Commit 8e271dd

Browse files
authored
Merge pull request #2118 from ApexAI/iox-#2099-fix-ros-2-rhel-build
Fix ROS 2 RHEL build
2 parents b225f3a + cdb8615 commit 8e271dd

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tools/introspection/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,11 @@ endif()
4242
# cmake doesn't find ncurses under QNX; let the compiler complain if the header is missing
4343
if(NOT QNX)
4444
SET(CURSES_USE_NCURSES TRUE)
45-
find_package(Curses REQUIRED)
45+
find_package(Curses QUIET)
46+
if(NOT CURSES_FOUND)
47+
message(STATUS "The build of the introspection client is skipped due to missing the curses library")
48+
return()
49+
endif()
4650
if(${CURSES_HAVE_NCURSES_H} MATCHES ".*-NOTFOUND")
4751
message(SEND_ERROR "ncurses header not found! Please install libncurses5-dev!")
4852
endif(${CURSES_HAVE_NCURSES_H} MATCHES ".*-NOTFOUND")

0 commit comments

Comments
 (0)