Skip to content

Commit f601e00

Browse files
committed
Use CMAKE_COMMAND variable instead of cmake
1 parent a18b0d7 commit f601e00

11 files changed

+19
-19
lines changed

scripts/builds/cmake_gpu_cuda_mpi_openmp_smallbig_shared.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,11 @@ ${CMAKE_COMMAND} -C ${LAMMPS_DIR}/cmake/presets/most.cmake \
8585
${LAMMPS_DIR}/cmake || exit 1
8686

8787
# Build
88-
cmake --build . -- -j ${LAMMPS_COMPILE_NPROC} || exit 1
88+
${CMAKE_COMMAND} --build . -- -j ${LAMMPS_COMPILE_NPROC} || exit 1
8989

9090
# Install
9191
# running install target repeats the compilation with Kokkos enabled
92-
# cmake --build . --target install || exit 1
92+
# ${CMAKE_COMMAND} --build . --target install || exit 1
9393
deactivate
9494

9595
ccache -s

scripts/builds/cmake_gpu_hip_serial_bigbig_static.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,11 @@ ${CMAKE_COMMAND} -C ${LAMMPS_DIR}/cmake/presets/most.cmake \
8989
${LAMMPS_DIR}/cmake || exit 1
9090

9191
# Build
92-
cmake --build . -- -j ${LAMMPS_COMPILE_NPROC} || exit 1
92+
${CMAKE_COMMAND} --build . -- -j ${LAMMPS_COMPILE_NPROC} || exit 1
9393

9494
# Install
9595
# running install target repeats the compilation with Kokkos enabled
96-
# cmake --build . --target install || exit 1
96+
# ${CMAKE_COMMAND} --build . --target install || exit 1
9797
deactivate
9898

9999
ccache -s

scripts/builds/cmake_kokkos_cuda_bigbig_static.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,11 @@ ${CMAKE_COMMAND} \
6767
${LAMMPS_DIR}/cmake || exit 1
6868

6969
# Build
70-
cmake --build . -- -j ${LAMMPS_COMPILE_NPROC} || exit 1
70+
${CMAKE_COMMAND} --build . -- -j ${LAMMPS_COMPILE_NPROC} || exit 1
7171

7272
# Install
7373
# running install target repeats the compilation with Kokkos enabled
74-
# cmake --build . --target install || exit 1
74+
# ${CMAKE_COMMAND} --build . --target install || exit 1
7575
deactivate
7676

7777
ccache -s

scripts/builds/cmake_kokkos_mpi_openmp_clang_shared.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,11 @@ ${CMAKE_COMMAND} \
8686
${LAMMPS_DIR}/cmake || exit 1
8787

8888
# Build
89-
cmake --build . -- -j ${LAMMPS_COMPILE_NPROC} || exit 1
89+
${CMAKE_COMMAND} --build . -- -j ${LAMMPS_COMPILE_NPROC} || exit 1
9090

9191
# Install
9292
# running install target repeats the compilation with Kokkos enabled
93-
#cmake --build . --target install || exit 1
93+
#${CMAKE_COMMAND} --build . --target install || exit 1
9494
deactivate
9595

9696
ccache -s

scripts/builds/cmake_kokkos_mpi_openmp_smallbig_icc_shared.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,11 @@ ${CMAKE_COMMAND} \
8686
${LAMMPS_DIR}/cmake || exit 1
8787

8888
# Build
89-
cmake --build . -- -j ${LAMMPS_COMPILE_NPROC} || exit 1
89+
${CMAKE_COMMAND} --build . -- -j ${LAMMPS_COMPILE_NPROC} || exit 1
9090

9191
# Install
9292
# running install target repeats the compilation with Kokkos enabled
93-
#cmake --build . --target install || exit 1
93+
#${CMAKE_COMMAND} --build . --target install || exit 1
9494
deactivate
9595

9696
ccache -s

scripts/builds/cmake_mpi_openmp_bigbig_icc_static.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,10 @@ ${CMAKE_COMMAND} -G Ninja \
8282
${LAMMPS_DIR}/cmake || exit 1
8383

8484
# Build
85-
cmake --build . -- -j ${LAMMPS_COMPILE_NPROC} || exit 1
85+
${CMAKE_COMMAND} --build . -- -j ${LAMMPS_COMPILE_NPROC} || exit 1
8686

8787
# Install
88-
cmake --build . --target install || exit 1
88+
${CMAKE_COMMAND} --build . --target install || exit 1
8989
deactivate
9090

9191
ccache -s

scripts/builds/cmake_mpi_openmp_bigbig_static.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,10 @@ ${CMAKE_COMMAND} -G Ninja \
7979
${LAMMPS_DIR}/cmake || exit 1
8080

8181
# Build
82-
cmake --build . -- -j ${LAMMPS_COMPILE_NPROC} || exit 1
82+
${CMAKE_COMMAND} --build . -- -j ${LAMMPS_COMPILE_NPROC} || exit 1
8383

8484
# Install
85-
cmake --build . --target install || exit 1
85+
${CMAKE_COMMAND} --build . --target install || exit 1
8686
deactivate
8787

8888
ccache -s

scripts/builds/cmake_mpi_openmp_smallbig_shared_win64.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,6 @@ ${CMAKE_COMMAND} -C ${LAMMPS_DIR}/cmake/presets/mingw-cross.cmake \
4747
${LAMMPS_DIR}/cmake || exit 1
4848

4949
# Build
50-
cmake --build . -- -j ${LAMMPS_COMPILE_NPROC} || exit 1
50+
${CMAKE_COMMAND} --build . -- -j ${LAMMPS_COMPILE_NPROC} || exit 1
5151

5252
ccache -s

scripts/builds/cmake_mpi_smallbig_shared.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,10 @@ ${CMAKE_COMMAND} -C ${LAMMPS_DIR}/cmake/presets/most.cmake \
7878
${LAMMPS_DIR}/cmake || exit 1
7979

8080
# Build
81-
cmake --build . -- -j ${LAMMPS_COMPILE_NPROC} || exit 1
81+
${CMAKE_COMMAND} --build . -- -j ${LAMMPS_COMPILE_NPROC} || exit 1
8282

8383
# Install
84-
cmake --build . --target install || exit 1
84+
${CMAKE_COMMAND} --build . --target install || exit 1
8585
deactivate
8686

8787
ccache -s

scripts/builds/cmake_serial_smallsmall_static.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ ${CMAKE_COMMAND} \
8181
${LAMMPS_DIR}/cmake || exit 1
8282

8383
# Build
84-
cmake --build . -- -j ${LAMMPS_COMPILE_NPROC} || exit 1
84+
${CMAKE_COMMAND} --build . -- -j ${LAMMPS_COMPILE_NPROC} || exit 1
8585

8686
# Install
8787
make install || exit 1

0 commit comments

Comments
 (0)