aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/openmpi/mpi-wrapper.cmake
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/openmpi/mpi-wrapper.cmake
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/openmpi/mpi-wrapper.cmake')
-rw-r--r--vcpkg/ports/openmpi/mpi-wrapper.cmake13
1 files changed, 13 insertions, 0 deletions
diff --git a/vcpkg/ports/openmpi/mpi-wrapper.cmake b/vcpkg/ports/openmpi/mpi-wrapper.cmake
new file mode 100644
index 0000000..e4327ce
--- /dev/null
+++ b/vcpkg/ports/openmpi/mpi-wrapper.cmake
@@ -0,0 +1,13 @@
+if(NOT DEFINED MPI_HOME)
+ set(MPI_HOME "${VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}" CACHE INTERNAL "vcpkg")
+ set(z_vcpkg_mpiexec_directories
+ "${MPI_HOME}/tools/openmpi/bin"
+ "${MPI_HOME}/tools/openmpi/debug/bin"
+ )
+ if(NOT DEFINED CMAKE_BUILD_TYPE OR CMAKE_BUILD_TYPE MATCHES "^[Dd][Ee][Bb][Uu][Gg]$")
+ list(REVERSE z_vcpkg_mpiexec_directories)
+ endif()
+ find_program(MPIEXEC_EXECUTABLE NAMES mpiexec PATHS ${z_vcpkg_mpiexec_directories} NO_DEFAULT_PATH)
+ unset(z_vcpkg_mpiexec_directories)
+endif()
+_find_package(${ARGS})