Skip to content

Commit

Permalink
fix(samples): correct multiline command handling in `setup_samples.cm…
Browse files Browse the repository at this point in the history
…ake` (#2832)
  • Loading branch information
homksei committed Jul 24, 2024
1 parent 8375ba6 commit bb9e92e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samples/cmake/setup_samples.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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} $<TARGET_FILE:${sample}>
DEPENDS ${sample}
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
Expand Down

0 comments on commit bb9e92e

Please sign in to comment.