Skip to content

Commit 1d4b3c9

Browse files
committed
only change the name of the package/version when cross-compiling
1 parent 24a291c commit 1d4b3c9

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

USER-AEAM/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ elseif(CMAKE_SYSTEM_NAME STREQUAL "Windows")
4848
set(mytarget package)
4949
endif()
5050
if(BUILD_MPI)
51-
if(USE_MSMPI)
51+
if(USE_MSMPI AND CMAKE_CROSSCOMPILING)
5252
add_custom_target(${mytarget} ${MAKENSIS_PATH} -V1 -DVERSION=${LAMMPS_VERSION}-MSMPI aeamplugin.nsis
5353
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
5454
DEPENDS aeamplugin ${CMAKE_BINARY_DIR}/lammps.ico ${CMAKE_BINARY_DIR}/lammps-text-logo-wide.bmp ${CMAKE_BINARY_DIR}/aeamplugin.nsis

USER-REBOMOS/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ elseif(CMAKE_SYSTEM_NAME STREQUAL "Windows")
4848
set(mytarget package)
4949
endif()
5050
if(BUILD_MPI)
51-
if(USE_MSMPI)
51+
if(USE_MSMPI AND CMAKE_CROSSCOMPILING)
5252
add_custom_target(${mytarget} ${MAKENSIS_PATH} -V1 -DVERSION=${LAMMPS_VERSION}-MSMPI rebomosplugin.nsis
5353
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
5454
DEPENDS rebomosplugin ${CMAKE_BINARY_DIR}/lammps.ico ${CMAKE_BINARY_DIR}/lammps-text-logo-wide.bmp ${CMAKE_BINARY_DIR}/rebomosplugin.nsis

USER-VCSGC/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ elseif(CMAKE_SYSTEM_NAME STREQUAL "Windows")
5050
set(mytarget package)
5151
endif()
5252
if(BUILD_MPI)
53-
if(USE_MSMPI)
53+
if(USE_MSMPI AND CMAKE_CROSSCOMPILING)
5454
add_custom_target(${mytarget} ${MAKENSIS_PATH} -V1 -DVERSION=${LAMMPS_VERSION}-MSMPI vcsgcplugin.nsis
5555
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
5656
DEPENDS vcsgcplugin ${CMAKE_BINARY_DIR}/lammps.ico ${CMAKE_BINARY_DIR}/lammps-text-logo-wide.bmp ${CMAKE_BINARY_DIR}/vcsgcplugin.nsis

0 commit comments

Comments
 (0)