CMake: use system system yyjson in unit tests

Fix #1244
This commit is contained in:
Carter Li
2024-09-03 20:11:28 +08:00
parent bbe4988054
commit d824045973
+3
View File
@@ -1348,6 +1348,9 @@ if (BUILD_TESTS)
target_link_libraries(fastfetch-test-format
PRIVATE libfastfetch
)
if(yyjson_FOUND)
target_compile_definitions(fastfetch-test-format PRIVATE FF_USE_SYSTEM_YYJSON)
endif()
enable_testing()
add_test(NAME test-strbuf COMMAND fastfetch-test-strbuf)