mirror of
https://github.com/ceph/ceph
synced 2024-12-18 17:37:38 +00:00
a2706c7e16
* Findlttng-ust.cmake: detect lttng-gen-tp, and make it a required var * Findlttng-ust.cmake: fix the detection of lttng * src/tracing/CMakeLists.txt: - do not put the generated header files into ${CMAKE_SOURCE_DIR}/src/tracing, instead we should put the generated files into ${PROJECT_BINARY_DIR}/include. - do not compile the tracing library using the .c files in the repo, instead, we should generate them at compile time using lttng-gen-tp, and compile the genererated .c files. * CMakeLists.txt: make the lttng-use package REQUIRED if WITH_LTTNG=ON * src/CMakeLists.txt: let librados depend on librados-tp if LTTNG is enabled: librados includes tracing/librados.h. the same applies to librbd, libos and libosd. cmake could deduce the dependencies if we add the lttng header files under include/tracing into the corresponding target, as the lttng header files are already listed as OUTPUT and GENERATED files, but this requires us to put all the involved targets in the same CMakeLists.txt. in this case, three CMakeLists.txts are impacted. so we create a new target for each lttng header, and let the impacted target depend on it. Signed-off-by: Kefu Chai <kchai@redhat.com> |
||
---|---|---|
.. | ||
AddCephTest.cmake | ||
Findaio.cmake | ||
Findatomic_ops.cmake | ||
Findbabeltrace.cmake | ||
Findblkid.cmake | ||
Findcryptopp.cmake | ||
FindCython.cmake | ||
Finddpdk.cmake | ||
Findexecinfo.cmake | ||
Findexpat.cmake | ||
Findfcgi.cmake | ||
Findfio.cmake | ||
Findfuse.cmake | ||
Findgperftools.cmake | ||
FindJeMalloc.cmake | ||
Findkeyutils.cmake | ||
Findleveldb.cmake | ||
Findlibcurl.cmake | ||
Findlibuuid.cmake | ||
Findlttng-ust.cmake | ||
FindLZ4.cmake | ||
FindNSPR.cmake | ||
FindNSS.cmake | ||
FindOpenLdap.cmake | ||
Findpciaccess.cmake | ||
Findsnappy.cmake | ||
Findtcmalloc.cmake | ||
Findudev.cmake | ||
Findxfs.cmake | ||
Findxio.cmake | ||
GetGitRevisionDescription.cmake | ||
GetGitRevisionDescription.cmake.in |