cmake 3.10.1 findMpi unusable

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

cmake 3.10.1 findMpi unusable

Biddiscombe, John A.
My system updated cmake to 3.10.1 and now findpackage(mpi) is now unusable

After trying everything I can think of, I have ended up with this, but it still does not find mpi as the trycompile step fails to build a test mpi due to missing mpi.h

It used to be so simple. I do not want to use compiler wrappers or any other fancy detection, all I want to do is tell it an include path and a library.

Can anyone tell me what cmake var am I missing? Thanks

JB

cmake --debug-try-compile \
  -DHPX_DIR=~/build/hpx-debug/lib/cmake/HPX \
  -DMPI_SKIP_COMPILER_WRAPPER=ON \
  -DMPI_ASSUME_NO_BUILTIN_MPI=ON  \
  -DMPI_ROOT=$HOME/apps/mpich \
  -DMPI_BASE_DIR=$HOME/apps/mpich \
  -DMPI_INCLUDE_PATH=$HOME/apps/mpich/include \
  -DMPI_C_INCLUDE_PATH=$HOME/apps/mpich/include \
  -DMPI_CXX_INCLUDE_PATH=$HOME/apps/mpich/include \
  -DMPI_INCLUDE_DIRS=$HOME/apps/mpich/include \
  -DMPI_C_INCLUDE_DIRS=$HOME/apps/mpich/include \
  -DMPI_CXX_INCLUDE_DIRS=$HOME/apps/mpich/include \
  -DMPI_HEADER_DIR=$HOME/apps/mpich/include \
  -DMPI_C_HEADER_DIR=$HOME/apps/mpich/include \
  -DMPI_CXX_HEADER_DIR=$HOME/apps/mpich/include \
  -DMPI_ADDITIONAL_INCLUDE_DIRS=$HOME/apps/mpich/include \
  -DMPI_C_ADDITIONAL_INCLUDE_DIRS=$HOME/apps/mpich/include \
  -DMPI_CXX_ADDITIONAL_INCLUDE_DIRS=$HOME/apps/mpich/include \
  -DMPI_LIBRARY=$HOME/apps/mpich/lib/libmpi.so \
  -DMPI_C_LIBRARY=$HOME/apps/mpich/lib/libmpi.so \
  -DMPI_CXX_LIBRARY=$HOME/apps/mpich/lib/libmpi.so \
  -DMPI_LIBRARIES=$HOME/apps/mpich/lib/libmpich.so \
  -DMPI_C_LIBRARIES=$HOME/apps/mpich/lib/libmpich.so \
  -DMPI_CXX_LIBRARIES=$HOME/apps/mpich/lib/libmpich.so \
  ~/src/hvtkm/linear_algebra/
 


--
John Biddiscombe,                        email:biddisco @.at.@ cscs.ch
http://www.cscs.ch/
CSCS, Swiss National Supercomputing Centre  | Tel:  +41 (91) 610.82.07
Via Trevano 131, 6900 Lugano, Switzerland   | Fax:  +41 (91) 610.82.82

--

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