aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/msmpi/mpi-wrapper.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/msmpi/mpi-wrapper.cmake')
-rw-r--r--vcpkg/ports/msmpi/mpi-wrapper.cmake9
1 files changed, 9 insertions, 0 deletions
diff --git a/vcpkg/ports/msmpi/mpi-wrapper.cmake b/vcpkg/ports/msmpi/mpi-wrapper.cmake
new file mode 100644
index 0000000..03fc46c
--- /dev/null
+++ b/vcpkg/ports/msmpi/mpi-wrapper.cmake
@@ -0,0 +1,9 @@
+get_filename_component(_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH)
+get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
+get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
+
+# Suitable for FindMPI.cmake line 937
+set(ENV{MSMPI_INC} "${_IMPORT_PREFIX}/include")
+unset(_IMPORT_PREFIX)
+
+_find_package(${ARGS})