copy to server_directory/bin when cross compiling
Run Simulator Tests on local RHEL9 / build (push) Failing after 7s
Run Simulator Tests on local RHEL8 / build (push) Failing after 12s
Build on RHEL9 docker image / build (push) Failing after 11s
Build on RHEL8 docker image / build (push) Failing after 12s

This commit is contained in:
2026-05-29 15:57:05 +02:00
parent c44c3d8f6d
commit 8427b52203
@@ -80,6 +80,14 @@ install(TARGETS matterhornDetectorServer
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)
if(CMAKE_TOOLCHAIN_FILE AND NOT CMAKE_TOOLCHAIN_FILE STREQUAL "") # copy the server binary
add_custom_command(TARGET matterhornDetectorServer POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_if_different
$<TARGET_FILE:matterhornDetectorServer>
${CMAKE_CURRENT_BINARY_DIR}/bin/matterhornDetectorServer
)
endif()
if(SLS_USE_TESTS)
add_subdirectory(tests)