From fa0c5881a4da9963960ba498babb447c1c80cae2 Mon Sep 17 00:00:00 2001 From: Ganesh Mahalingam Date: Wed, 14 Dec 2016 21:34:24 -0800 Subject: [PATCH] Fix error in including all files in osd_tp osd_tp is the only variable that is a list and with current logic only the last file of the list will be included in the tracing library. This patch is to address that issue Signed-off-by: Ganesh Mahalingam --- src/tracing/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tracing/CMakeLists.txt b/src/tracing/CMakeLists.txt index c434e62f595..8b153935ec2 100644 --- a/src/tracing/CMakeLists.txt +++ b/src/tracing/CMakeLists.txt @@ -26,8 +26,9 @@ function(add_tracing_library name tracings version) get_filename_component(tp ${tp_file} NAME_WE) list(APPEND hdrs ${header_dir}/${tp}.h) + list(APPEND tpfiles ${tp}.c) endforeach() - add_library(${name} SHARED ${hdrs} ${tp}.c) + add_library(${name} SHARED ${hdrs} ${tpfiles}) target_link_libraries(${name} ${LTTNGUST_LIBRARIES} ${CMAKE_DL_LIBS}) string(REGEX MATCH "^[0-9]+" soversion ${version}) set_target_properties(${name} PROPERTIES -- 2.47.3