meson: always build the zstd binary when tests are enabled

We need to run it for the tests, even if programs are disabled. So if
they are disabled, create a build rule for the program, but don't
install it. Just make it available for the test itself.
This commit is contained in:
Eli Schwartz
2023-02-10 00:33:07 -05:00
parent 183a18a45c
commit 97ab0e2ab6
2 changed files with 9 additions and 2 deletions
+1 -1
View File
@@ -132,7 +132,7 @@ endif
subdir('lib')
if bin_programs
if bin_programs or bin_tests
subdir('programs')
endif