From ccea68893b7d3decbf9000d4b92ac9a603294023 Mon Sep 17 00:00:00 2001 From: Tomasz Kantecki Date: Mon, 1 Jul 2024 11:51:29 +0100 Subject: [PATCH] Update CMakeLists.txt --- test/mp-app/CMakeLists.txt | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/test/mp-app/CMakeLists.txt b/test/mp-app/CMakeLists.txt index 839abc71..994bb31c 100644 --- a/test/mp-app/CMakeLists.txt +++ b/test/mp-app/CMakeLists.txt @@ -96,6 +96,12 @@ else() set(TEST_APP_BIN_DIR "${CMAKE_CURRENT_BINARY_DIR}") endif() -add_test(NAME MULTIPROCESS - COMMAND ${MP_APP_PRI} ${TEST_APP_BIN_DIR}/${MP_APP_SEC} - WORKING_DIRECTORY ${TEST_APP_BIN_DIR}) +if(IMB_BIN_DIR) + add_test(NAME MULTIPROCESS + COMMAND ${MP_APP_PRI} ${MP_APP_SEC} + WORKING_DIRECTORY ${TEST_APP_BIN_DIR}) +else() + add_test(NAME MULTIPROCESS + COMMAND ${MP_APP_PRI} ${TEST_APP_BIN_DIR}/${MP_APP_SEC} + WORKING_DIRECTORY ${TEST_APP_BIN_DIR}) +endif()