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()