Hi Burlen, _LIBRARIES and _INCLUDE_DIRS are non-cached output variables. The new functionality should be documented as to how to guide the current FindMPI: https://cmake.org/cmake/help/v3.12/module/FindMPI.html#variables-for-locating-mpi . That being said, is it incorrectl6y detecting or determine the MPI installation? If that's the case then we should probably fix that issue instead.
---------- Chuck Atkins Staff R&D Engineer, Scientific Computing Kitware, Inc. (518) 881-1183 On Thu, Sep 13, 2018 at 4:46 PM Burlen Loring <burlen.lor...@gmail.com> wrote: > Hi, > > I'm trying to transition from cmake 3.8.2 to cmake 3.11.4. There are a > number of changes the way FindMPI.cmake behaves in 3.11 that are making > this difficult. > > In 3.11 how do I override the settings? For instance I want to set > MPI_C_LIBRARIES, MPI_C_INCLUDE_DIRS? In 3.8 all I had to do was set > those variables myself, before find_package(MPI), and my setting were > used. in 3.11 find_package(MPI) ignores, and wipes out my settings, and > then fails. > > Isn't it a defacto standard of cmake to be able to override find modules > by setting the libraries and include dirs before the module runs? > > Burlen > > > -- > > 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 >
-- 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