CMake: use system system yyjson in unit tests

Fix #1244
This commit is contained in:
Carter Li committed 2024-09-03 20:11:28 +08:00
1 parent bbe4988054
commit d824045973
1 file changed
+3
+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)