Greetings fellow CMake users, enthusiasts, and developers! We have a user who is installing OpenCoarrays on Windows using Intel MPI under MSYS2. They report having to generate an interface library, impi.a (or impi.lib) by hand using gendef and dlltool for Intel’s impi.dll MPI library. My questions are as follows:
1. Can CMake automate the generation of an interface library for an existing 3rd party windows .dll without having to call non-standard tools? 2. Does anyone know if they are just misconfiguring their Intel MPI and Intel really ships with an interface library somewhere that is not getting picked up by the build system? (If so, do we need anything special beyond find_package(MPI) to use the interface library that Intel may or may not ship?) The user also reports having to edit FindMPI.cmake to get it running properly on MSYS2: $ diff -Nu FindMPI.cmake.orig FindMPI.cmake--- FindMPI.cmake.orig 2018-05-17 16:29:45.352467900 -0500+++ FindMPI.cmake 2018-05-20 14:58:14.090710500 -0500@@ -337,7 +337,7 @@ separate_arguments(_MPI_COMPILER_WRAPPER_OPTIONS NATIVE_COMMAND "${MPI_COMPILER_FLAGS}") endif() execute_process(- COMMAND ${MPI_${LANG}_COMPILER} ${_MPI_COMPILER_WRAPPER_OPTIONS} ${QUERY_FLAG}+ COMMAND "bash" ${MPI_${LANG}_COMPILER} ${_MPI_COMPILER_WRAPPER_OPTIONS} ${QUERY_FLAG} OUTPUT_VARIABLE WRAPPER_OUTPUT OUTPUT_STRIP_TRAILING_WHITESPACE ERROR_VARIABLE WRAPPER_OUTPUT ERROR_STRIP_TRAILING_WHITESPACE RESULT_VARIABLE WRAPPER_RETURN) Is this a bug in FindMPI.cmake or are we doing something wrong in the build system? The original thread can be seen at: https://github.com/sourceryinstitute/OpenCoarrays/issues/541 Many thanks, Zaak Izaak "Zaak" Beekman ------------------------------------------------------------------------------- HPC Scientist ParaTools Inc. <http://www.paratools.com/> 1509 16th St, NW Washington, DC 20036 mobile: (917) 797-3239 -------------------------------------------------------------------------------
-- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake