Skip to content

Commit

Permalink
build: only build test_strings when needed
Browse files Browse the repository at this point in the history
  • Loading branch information
mhx committed Aug 15, 2024
1 parent 3806e60 commit 7084f73
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -394,11 +394,13 @@ if(WITH_TESTS OR WITH_BENCHMARKS OR WITH_FUZZ)
add_library(dwarfs_test_helpers OBJECT
test/test_helpers.cpp
test/test_iolayer.cpp
test/test_strings.cpp
test/loremipsum.cpp
test/test_dirtree.cpp
test/filter_test_data.cpp
)
if(WITH_BENCHMARKS)
target_sources(dwarfs_test_helpers PRIVATE test/test_strings.cpp)
endif()
target_link_libraries(dwarfs_test_helpers PUBLIC dwarfs_common dwarfs_writer dwarfs_tool)
set_property(TARGET dwarfs_test_helpers PROPERTY CXX_STANDARD 20)
endif()
Expand Down

0 comments on commit 7084f73

Please sign in to comment.