aboutsummaryrefslogtreecommitdiff
path: root/cmake/WarpXFunctions.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/WarpXFunctions.cmake')
-rw-r--r--cmake/WarpXFunctions.cmake16
1 files changed, 6 insertions, 10 deletions
diff --git a/cmake/WarpXFunctions.cmake b/cmake/WarpXFunctions.cmake
index b5bbf0c9b..0d17d38ec 100644
--- a/cmake/WarpXFunctions.cmake
+++ b/cmake/WarpXFunctions.cmake
@@ -160,12 +160,10 @@ function(set_warpx_binary_name)
endif()
foreach(tgt IN LISTS _ALL_TARGETS)
set_target_properties(${tgt} PROPERTIES OUTPUT_NAME "warpx")
- if(WarpX_DIMS STREQUAL 3)
- set_property(TARGET ${tgt} APPEND_STRING PROPERTY OUTPUT_NAME ".3d")
- elseif(WarpX_DIMS STREQUAL 2)
- set_property(TARGET ${tgt} APPEND_STRING PROPERTY OUTPUT_NAME ".2d")
- elseif(WarpX_DIMS STREQUAL RZ)
+ if(WarpX_DIMS STREQUAL RZ)
set_property(TARGET ${tgt} APPEND_STRING PROPERTY OUTPUT_NAME ".RZ")
+ else()
+ set_property(TARGET ${tgt} APPEND_STRING PROPERTY OUTPUT_NAME ".${WarpX_DIMS}d")
endif()
if(WarpX_MPI)
@@ -226,12 +224,10 @@ function(set_warpx_binary_name)
endif()
if(WarpX_LIB)
# alias to the latest build; this is the one expected by Python bindings
- if(WarpX_DIMS STREQUAL 3)
- set(lib_suffix "3d")
- elseif(WarpX_DIMS STREQUAL 2)
- set(lib_suffix "2d")
- elseif(WarpX_DIMS STREQUAL RZ)
+ if(WarpX_DIMS STREQUAL RZ)
set(lib_suffix "rz")
+ else()
+ set(lib_suffix "${WarpX_DIMS}d")
endif()
if(WIN32)
set(mod_ext "dll")