From bb9e92edc58f2ad63e0000dc06a22d7c0d103596 Mon Sep 17 00:00:00 2001 From: Aleksei Khomenko Date: Wed, 24 Jul 2024 16:27:50 +0300 Subject: [PATCH] fix(samples): correct multiline command handling in `setup_samples.cmake` (#2832) --- samples/cmake/setup_samples.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/cmake/setup_samples.cmake b/samples/cmake/setup_samples.cmake index afaf9042417..dd7d3cc758b 100644 --- a/samples/cmake/setup_samples.cmake +++ b/samples/cmake/setup_samples.cmake @@ -111,7 +111,7 @@ function(add_samples samples_paths) set_target_properties(${sample} PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${PROJECT_SOURCE_DIR}/_cmake_results/${CPU_ARCHITECTURE}_${LINK_TYPE}") add_custom_target(run_${sample} - COMMAND ${MPIEXEC_EXECUTABLE} ${MPIEXEC_NUMPROC_FLAG} \\ + COMMAND ${MPIEXEC_EXECUTABLE} ${MPIEXEC_NUMPROC_FLAG} ${MPIEXEC_MAX_NUMPROCS} -ppn ${MPIEXEC_NUMPROCS_PER_NODE} $ DEPENDS ${sample} WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}