build: don't install benchmark artifact if benchmark library is missing

This commit is contained in:
Marcus Holland-Moritz 2025-03-21 20:04:33 +01:00
parent 342d82d7e1
commit 5db0d1dd8e

View File

@ -1039,7 +1039,7 @@ if(DEFINED ENV{GITHUB_REF_TYPE})
)
endforeach()
if (ENABLE_RICEPP)
if (ENABLE_RICEPP AND benchmark_FOUND)
add_custom_command(
OUTPUT _copy_artifacts APPEND
COMMAND ${CMAKE_COMMAND} -E copy