Commit de2f09f1 authored by Vladimír Petrík's avatar Vladimír Petrík
Browse files

change target properties to target_include_directories

parent 9bbad3fe
Pipeline #18829 passed with stage
in 2 minutes and 6 seconds
......@@ -36,9 +36,7 @@ if(ROS_VERSION EQUAL 1) # if ROS1
generate_messages(DEPENDENCIES ${MESSAGE_DEPENDENCIES})
add_library(${PROJECT_NAME} INTERFACE)
set_target_properties(${PROJECT_NAME} PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES ${${PROJECT_NAME}_INCLUDE_DIRS}
)
target_include_directories(${PROJECT_NAME} INTERFACE $<INSTALL_INTERFACE:include>)
install(TARGETS ${PROJECT_NAME} EXPORT ${TARGETS_EXPORT_NAME} DESTINATION lib)
else() # if ROS2
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment