Skip to content

Commit 759c5cd

Browse files
cmake: don't use &&, use multiple COMMAND elements (#307)
1 parent a4a26d0 commit 759c5cd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ function(npf_test name files)
8181
set(timestamp "${CMAKE_CURRENT_BINARY_DIR}/${name}.timestamp")
8282
add_custom_target(run_${name} ALL DEPENDS ${timestamp})
8383
add_custom_command(OUTPUT ${timestamp}
84-
COMMAND ${name} -m && ${CMAKE_COMMAND} -E touch ${timestamp}
84+
COMMAND ${name} -m
85+
COMMAND ${CMAKE_COMMAND} -E touch ${timestamp}
8586
DEPENDS ${name}
8687
COMMENT "Running ${name}")
8788
endfunction()

0 commit comments

Comments
 (0)