Compare commits

...

2 Commits

Author SHA1 Message Date
7339aeeae5
chore: Add platform-specific example targets
Someone might want to build only the examples that work on non-POSIX, or the ones that work on POSIX.
2023-02-05 14:33:59 +01:00
40302ddd41
fix: Do not define metadata twice in examples/pack.c 2023-02-05 14:30:29 +01:00
2 changed files with 3 additions and 2 deletions

View File

@ -7,4 +7,6 @@ target_link_libraries(untar PRIVATE minitar)
add_executable(pack EXCLUDE_FROM_ALL pack.c) add_executable(pack EXCLUDE_FROM_ALL pack.c)
target_link_libraries(pack PRIVATE minitar) target_link_libraries(pack PRIVATE minitar)
add_custom_target(examples DEPENDS list untar pack) add_custom_target(examples DEPENDS list untar pack)
add_custom_target(examples-posix DEPENDS list untar pack)
add_custom_target(examples-windows DEPENDS list)

View File

@ -27,7 +27,6 @@ int main(int argc, char** argv)
return 1; return 1;
} }
int exit_status = 0; int exit_status = 0;
struct minitar_entry_metadata metadata;
int arg = 2; int arg = 2;
while (arg < argc) while (arg < argc)
{ {