Merge branch 'format-cmakelists' into 'master'

Fix formatting in CMakeLists.txt

See merge request micro-ROS/ros_tracing/ros2_tracing!149
This commit is contained in:
Christophe Bedard 2020-03-03 22:29:47 +00:00
commit b88c023ffe

View file

@ -77,10 +77,9 @@ if(TRACETOOLS_LTTNG_ENABLED)
target_link_libraries(${PROJECT_NAME} ${LTTNG_LIBRARIES}) target_link_libraries(${PROJECT_NAME} ${LTTNG_LIBRARIES})
endif() endif()
if(WIN32) if(WIN32)
# Causes the visibility macros to use dllexport rather than dllimport # Causes the visibility macros to use dllexport rather than dllimport
# which is appropriate when building the dll but not consuming it. # which is appropriate when building the dll but not consuming it.
target_compile_definitions(${PROJECT_NAME} target_compile_definitions(${PROJECT_NAME} PRIVATE "TRACETOOLS_BUILDING_DLL")
PRIVATE "TRACETOOLS_BUILDING_DLL")
endif() endif()
ament_export_interfaces(${PROJECT_NAME}_export HAS_LIBRARY_TARGET) ament_export_interfaces(${PROJECT_NAME}_export HAS_LIBRARY_TARGET)