Move LTTng check to subdirectory where used

This commit is contained in:
Robert Schmidt
2025-09-29 09:04:02 +02:00
parent d6c29b2d2c
commit 1a5e2598a3
2 changed files with 3 additions and 5 deletions
+3
View File
@@ -4,7 +4,10 @@ target_link_libraries(log_headers INTERFACE T_headers)
set(log_sources log.c)
if (ENABLE_LTTNG)
find_package(LTTngUST 2.3.8 EXACT REQUIRED)
set(log_sources ${log_sources} lttng-tp.c)
else()
message(STATUS "LTTNG support disabled")
endif()
add_library(LOG ${log_sources})
target_include_directories(LOG PUBLIC .)