Skip to content

Commit d60c349

Browse files
convert c_standard to an optional pass in argument (#286) (#288)
Signed-off-by: dwayne <dewilliam0327@gmail.com> Co-authored-by: dwayne <dewilliam0327@gmail.com> (cherry picked from commit 21ed0ae) Co-authored-by: Dwayne Williams <dewilliams0327@gmail.com>
1 parent 8cfa3bc commit d60c349

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

rmw_microxrcedds_c/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@ set(RMW_UXRCE_STREAM_HISTORY_OUTPUT "" CACHE STRING
9292
"This value sets the number of MTUs to output buffer. It will be ignored if RMW_UXRCE_STREAM_HISTORY_INPUT is blank. \
9393
If set, must be a power of two.")
9494

95+
set(RMW_UXRCE_C_STANDARD 99 CACHE STRING "Version of the C language used to build the library")
96+
9597
if(RMW_UXRCE_STREAM_HISTORY_INPUT STREQUAL "" OR RMW_UXRCE_STREAM_HISTORY_OUTPUT STREQUAL "")
9698
unset(RMW_UXRCE_STREAM_HISTORY_INPUT)
9799
unset(RMW_UXRCE_STREAM_HISTORY_OUTPUT)
@@ -289,7 +291,7 @@ target_include_directories(${PROJECT_NAME}
289291

290292
set_target_properties(${PROJECT_NAME} PROPERTIES
291293
C_STANDARD
292-
99
294+
${RMW_UXRCE_C_STANDARD}
293295
C_STANDARD_REQUIRED
294296
YES
295297
)

0 commit comments

Comments
 (0)