File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -85,12 +85,12 @@ if(NOT TRACETOOLS_DISABLED)
8585 # Only use output/binary include directory
8686 target_include_directories (${PROJECT_NAME} PUBLIC
8787 "$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR} /include>"
88- "$<INSTALL_INTERFACE:include>"
88+ "$<INSTALL_INTERFACE:include/ ${PROJECT_NAME} >"
8989 )
9090else ()
9191 target_include_directories (${PROJECT_NAME} INTERFACE
9292 "$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR} /include>"
93- "$<INSTALL_INTERFACE:include>"
93+ "$<INSTALL_INTERFACE:include/ ${PROJECT_NAME} >"
9494 )
9595endif ()
9696
@@ -140,18 +140,19 @@ endforeach()
140140
141141install (
142142 DIRECTORY ${PROJECT_BINARY_DIR} /include /
143- DESTINATION include
143+ DESTINATION include / ${PROJECT_NAME}
144144)
145145install (
146146 TARGETS ${PROJECT_NAME}
147147 EXPORT ${PROJECT_NAME} _export
148148 LIBRARY DESTINATION lib
149149 ARCHIVE DESTINATION lib
150150 RUNTIME DESTINATION bin
151- INCLUDES DESTINATION include
152151)
153152
154- ament_export_include_directories(include )
153+ # Export old-style CMake variables
154+ ament_export_include_directories("include/${PROJECT_NAME} " )
155+
155156if (TRACETOOLS_LTTNG_ENABLED)
156157 ament_export_libraries(${PROJECT_NAME} ${LTTNG_LIBRARIES} )
157158 # Export -rdynamic for downstream packages using classic CMake variables
You can’t perform that action at this time.
0 commit comments