chore(cmake): make RTI codegen macro tolerant when RTI is not installed (skip RTIDDSGEN)

This commit is contained in:
torsten committed 2026-07-17 12:59:36 +02:00
1 parent 647f817a04
commit 033a94917a
1 file changed
+6 -1
+6 -1
View File
@@ -14,7 +14,12 @@
MACRO(RTIDDSGEN srcList infile) MACRO(RTIDDSGEN srcList infile)
FIND_PACKAGE(RTI REQUIRED) # RTI (DDS) code generation is optional during migration; if RTI is not found, skip code generation.
FIND_PACKAGE(RTI)
if (NOT RTI_FOUND)
message(STATUS "RTI not found; skipping RTI IDL code generation for ${infile}")
return()
endif()
SET(input ${infile}) SET(input ${infile})
IF(NOT IS_ABSOLUTE ${input}) IF(NOT IS_ABSOLUTE ${input})