vcpkg/ports/mpi/portfile.cmake
Jack·Boos·Yu 75536e7c61
[mpi/msmpi] Add cmake wrapper to fix bug getting MPI_${LANG}_ADDITIONAL_INCLUDE_DIRS when calling FindMPI.cmake on Windows (#24746)
* [mpi] Add cmake wrapper to fix bug getting MPI_${LANG}_ADDITIONAL_INCLUDE_DIRS when calling FindMPI.cmake

* version

* Move wrapper to msmpi, only copy the wrapper in the meta port installation

* version

* typo

* version

* Apply suggestion

* version

* move unset before _find_package

* version

* Add double quotes

* version

* Fix

* version

* Don't double quote list!

* version

* Apply suggestion

* version
2022-05-26 13:05:01 -07:00

6 lines
238 B
CMake

set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
if (VCPKG_TARGET_IS_WINDOWS)
file(INSTALL "${CURRENT_INSTALLED_DIR}/share/msmpi/mpi-wrapper.cmake" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME vcpkg-cmake-wrapper.cmake)
endif()