]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
Fix error in including all files in osd_tp 12501/head
authorGanesh Mahalingam <ganesh.mahalingam@intel.com>
Thu, 15 Dec 2016 05:34:24 +0000 (21:34 -0800)
committerGanesh Mahalingam <ganesh.mahalingam@intel.com>
Thu, 15 Dec 2016 06:04:52 +0000 (22:04 -0800)
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 <ganesh.mahalingam@intel.com>
src/tracing/CMakeLists.txt

index c434e62f595c74c0c576f507a88e2a4a39f8c28f..8b153935ec25929e385c2ce5b46d4387f390bd59 100644 (file)
@@ -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