Skip to content

Commit

Permalink
CMake: use system system yyjson in unit tests
Browse files Browse the repository at this point in the history
Fix #1244
  • Loading branch information
CarterLi committed Sep 3, 2024
1 parent bbe4988 commit d824045
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d824045

Please sign in to comment.