Fix instrumentation target for old CMake versions

Older make versions do not support source files to be added to INTERFACE
type target. The source file is not needed there so it was removed.
This commit is contained in:
Bartosz Podrygajlo
2024-12-16 15:21:11 +01:00
parent 1481d89dfd
commit b92ee59d41
+1 -1
View File
@@ -3,7 +3,7 @@ add_subdirectory(config/yaml)
configure_file(oai_version.h.in oai_version.h @ONLY)
add_library(instrumentation INTERFACE instrumentation.h)
add_library(instrumentation INTERFACE)
target_include_directories(instrumentation INTERFACE .)
if (TRACY_ENABLE)
target_link_libraries(instrumentation INTERFACE Tracy::TracyClient)