Skip to content

Commit

Permalink
MMVII: cmake: fix make -j N [distclean|full|rebuild] warning message
Browse files Browse the repository at this point in the history
  • Loading branch information
meynardc committed Jan 26, 2024
1 parent 5fae86f commit 6e76b43
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions MMVII/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -178,21 +178,21 @@ endif()

## distclean : clean + remove generated source files for symbolic calculus
add_custom_target(distclean
COMMAND ${CMAKE_COMMAND} --build ${CMAKE_BINARY_DIR} --config $<CONFIG> --target clean
COMMAND ${CMAKE_COMMAND} -E rm -rf ${mmv2_gencode_dir}
COMMAND ${make_parallel_prefix} ${CMAKE_COMMAND} --build ${CMAKE_BINARY_DIR} --config $<CONFIG> --target clean
COMMAND ${make_parallel_prefix} ${CMAKE_COMMAND} -E rm -rf ${mmv2_gencode_dir}
VERBATIM)

## full : generate source files for symbolic calculus and recompile
add_custom_target(full
COMMAND ${CMAKE_COMMAND} -E rm -rf ${mmv2_gencode_dir}
COMMAND ${make_parallel_prefix} ${CMAKE_COMMAND} -E rm -rf ${mmv2_gencode_dir}
COMMAND ${make_parallel_prefix} ${CMAKE_COMMAND} --build ${CMAKE_BINARY_DIR} --config $<CONFIG>
COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/MMVII GenCodeSymDer
COMMAND ${make_parallel_prefix} ${CMAKE_COMMAND} --build ${CMAKE_BINARY_DIR} --config $<CONFIG>
VERBATIM USES_TERMINAL)

## rebuild : distclean + full
add_custom_target(rebuild
COMMAND ${CMAKE_COMMAND} --build ${CMAKE_BINARY_DIR} --target distclean
COMMAND ${make_parallel_prefix} ${CMAKE_COMMAND} --build ${CMAKE_BINARY_DIR} --target distclean
COMMAND ${make_parallel_prefix} ${CMAKE_COMMAND} --build ${CMAKE_BINARY_DIR} --config $<CONFIG>
COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/MMVII GenCodeSymDer
COMMAND ${make_parallel_prefix} ${CMAKE_COMMAND} --build ${CMAKE_BINARY_DIR} --config $<CONFIG>
Expand Down

0 comments on commit 6e76b43

Please sign in to comment.