Hi,

Did Den 09. jan. 2014 22:49, skrev Pettey . Lucas:
> Hello,
>
> On a Cray XE6, I am using find_package(MPI REQUIRED) in my CMakeLists.txt. It 
> correctly finds all of the MPI stuff, except that it sets the MPIEXEC to the 
> login node mpiexec command. I would like to override this behavior and set 
> the MPIEXEC command to the "aprun" wrapper, but it is not working. I have 
> tried using set(MPIEXEC "aprun") both before and after the find_package(MPI 
> REQUIRED) in my CMakeLists.txt.
>
> Thanks
> Lucas

Hi,

Did you try to use find_program? I think this will "override" the
find_program inside FindMPI.cmake:

find_program(MPIEXEC aprun)
find_package(MPI REQUIRED)
message("MPI exec: ${MPIEXEC}")

Cheers,
Yngve


--

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:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to