summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAustin S. Hemmelgarn <austin@netdata.cloud>2024-03-28 07:05:19 -0400
committerGitHub <noreply@github.com>2024-03-28 07:05:19 -0400
commit20682b52812f67904404535a6250fecf4a53f605 (patch)
tree2ce13d73c939bcf684a90eb57c3c0b9d4e5b2abb
parentaa0694f591e4de386df5012b703ac35189e9398f (diff)
Correctly handle libyaml linking for log2journal. (#17276)
It somehow got missed when moving the libyaml bundling into the CMake code.
-rw-r--r--CMakeLists.txt9
1 files changed, 1 insertions, 8 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4bb75e0ea6..0d07d620ef 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -2096,14 +2096,7 @@ if(PCRE2_FOUND)
target_compile_definitions(log2journal PUBLIC ${PCRE2_CFLAGS_OTHER})
target_link_libraries(log2journal PUBLIC "${PCRE2_LDFLAGS}")
- if(ENABLE_BUNDLED_YAML)
- target_include_directories(log2journal BEFORE PUBLIC "${CMAKE_SOURCE_DIR}/externaldeps/libyaml")
- target_link_libraries(log2journal PUBLIC yaml)
- else()
- target_include_directories(log2journal BEFORE PUBLIC ${YAML_INCLUDE_DIRS})
- target_compile_definitions(log2journal PUBLIC ${YAML_CFLAGS_OTHER})
- target_link_libraries(log2journal PUBLIC ${YAML_LDFLAGS})
- endif()
+ netdata_add_libyaml_to_target(log2journal)
install(TARGETS log2journal
COMPONENT log2journal