build: fix rpm build error with test_infra 34/38534/1
authorTianyu Li <[email protected]>
Tue, 21 Mar 2023 06:49:38 +0000 (06:49 +0000)
committerTianyu Li <[email protected]>
Wed, 22 Mar 2023 07:05:45 +0000 (15:05 +0800)
RPM build errors:
error: Installed (but unpackaged) file(s) found:
   /usr/bin/test_infra

Add NO_INSTALL tag in CMakeLists to avoid installing test binary.

Type: fix
Fixes: c3542e17b5df ("vppinfra: widen the scope of test_vector_funcs")

Signed-off-by: Tianyu Li <[email protected]>
Change-Id: I359ba79af2e3cb32b47dda3bb8707a5d2fd8586b

src/vppinfra/CMakeLists.txt

index 204858d..4a9c008 100644 (file)
@@ -294,6 +294,7 @@ add_vpp_executable(test_infra
   test/test.c
   ${test_files}
   LINK_LIBRARIES vppinfra
+  NO_INSTALL
 )
 
 vpp_library_set_multiarch_sources(test_infra