Correctly handle libyaml linking for log2journal. (#17276)
It somehow got missed when moving the libyaml bundling into the CMake code.
Austin S. Hemmelgarn committed
Mar 28, 2024 at 07:05 UTC
20682b52812f67904404535a6250fecf4a53f605
1 file changed
+1
-8
CMakeLists.txt
+1
-8
@@ -2096,14 +2096,7 @@ if(PCRE2_FOUND)
2096
target_compile_definitions(log2journal PUBLIC ${PCRE2_CFLAGS_OTHER})
2097
target_link_libraries(log2journal PUBLIC "${PCRE2_LDFLAGS}")
2098
2099
- if(ENABLE_BUNDLED_YAML)
2100
- target_include_directories(log2journal BEFORE PUBLIC "${CMAKE_SOURCE_DIR}/externaldeps/libyaml")
2101
- target_link_libraries(log2journal PUBLIC yaml)
2102
- else()
2103
- target_include_directories(log2journal BEFORE PUBLIC ${YAML_INCLUDE_DIRS})
2104
- target_compile_definitions(log2journal PUBLIC ${YAML_CFLAGS_OTHER})
2105
- target_link_libraries(log2journal PUBLIC ${YAML_LDFLAGS})
2106
- endif()
2099
+ netdata_add_libyaml_to_target(log2journal)
2100
2101
install(TARGETS log2journal
2102
COMPONENT log2journal