[CMake] Choosing MPI installation

Yuri Timenkov yuri at timenkov.ru
Mon Apr 18 06:56:08 EDT 2011


Just remove these values from cache. If you always want to search in custom
location, look at find_package's options to avoid searching in default
locations

On Apr 11, 2011 6:03 PM, "Martin Vymazal" <martin.vymazal at vki.ac.be> wrote:
> Hello,
>
> I'm a beginner and I apologize in case I'm asking a question that
> has already been answered. I would like to find mpi in my
> CMakeLists.txt and enable the user to set the mpi inlude and lib
> directories by setting say variables MY_MPI_INCLUDE_DIR and
> MY_MPI_LIB_DIR in cmake gui.
> Using find_package(MPI) works just fine for me, but once the
> package is found (and the variables MPI_LIBRARY and MPI_INCLUDE_PATH
> are set and cached), I cannot force cmake to search again for MPI in a
> different directory).
> Could you please give me a hint how to do this? How should I handle
> a situation where a user has possibly multiple mpi installations?
>
> Thank you very much.
>
> Best regards,
>
> Martin Vymazal
>
>
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20110418/611863c2/attachment.htm>


More information about the CMake mailing list