Skip to content

Commit

Permalink
Update to C++17 (#111)
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Lalancette <[email protected]>
  • Loading branch information
clalancette authored Nov 20, 2023
1 parent 3262fb3 commit d8b858e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ add_custom_command(

# generate header to switch between export and import for a specific package
set(_visibility_control_file
"${_output_path}/msg/rosidl_typesupport_fastrtps_c__visibility_control.h")
"${_output_path}/msg/rosidl_typesupport_fastrtps_c__visibility_control.h")
string(TOUPPER "${PROJECT_NAME}" PROJECT_NAME_UPPER)
configure_file(
"${rosidl_typesupport_fastrtps_c_TEMPLATE_DIR}/rosidl_typesupport_fastrtps_c__visibility_control.h.in"
Expand All @@ -110,7 +110,7 @@ endif()
set_target_properties(${rosidl_generate_interfaces_TARGET}${_target_suffix}
PROPERTIES
DEFINE_SYMBOL "ROSIDL_TYPESUPPORT_FASTRTPS_C_BUILDING_DLL_${PROJECT_NAME}"
CXX_STANDARD 14)
CXX_STANDARD 17)

target_link_libraries(${rosidl_generate_interfaces_TARGET}${_target_suffix} PUBLIC
fastcdr
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ add_custom_command(

# generate header to switch between export and import for a specific package
set(_visibility_control_file
"${_output_path}/msg/rosidl_typesupport_fastrtps_cpp__visibility_control.h")
"${_output_path}/msg/rosidl_typesupport_fastrtps_cpp__visibility_control.h")
string(TOUPPER "${PROJECT_NAME}" PROJECT_NAME_UPPER)
configure_file(
"${rosidl_typesupport_fastrtps_cpp_TEMPLATE_DIR}/rosidl_typesupport_fastrtps_cpp__visibility_control.h.in"
Expand All @@ -125,7 +125,7 @@ endif()
set_target_properties(${rosidl_generate_interfaces_TARGET}${_target_suffix}
PROPERTIES
DEFINE_SYMBOL "ROSIDL_TYPESUPPORT_FASTRTPS_CPP_BUILDING_DLL_${PROJECT_NAME}"
CXX_STANDARD 14)
CXX_STANDARD 17)

# Set compiler flags
if(NOT WIN32)
Expand Down

0 comments on commit d8b858e

Please sign in to comment.