diff options
author | Alexander Neundorf <neundorf@kde.org> | 2007-08-06 15:02:58 (GMT) |
---|---|---|
committer | Alexander Neundorf <neundorf@kde.org> | 2007-08-06 15:02:58 (GMT) |
commit | b82b47e3299948a7d489e20659c960f331ba72de (patch) | |
tree | 91d32cdca205583f8a86f480ecb3c4d65ad86bb6 /Modules/FindMPI.cmake | |
parent | 70585819fb5b7876a05a14d9ce4ef2e4d91d3c19 (diff) | |
download | CMake-b82b47e3299948a7d489e20659c960f331ba72de.zip CMake-b82b47e3299948a7d489e20659c960f331ba72de.tar.gz CMake-b82b47e3299948a7d489e20659c960f331ba72de.tar.bz2 |
STYLE: use FIND_PACKAGE_HANDLE_STANDARD_ARGS() also in FindMPI.cmake
-remove unnecessary ELSE() in FindThreads.cmake
Alex
Diffstat (limited to 'Modules/FindMPI.cmake')
-rw-r--r-- | Modules/FindMPI.cmake | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Modules/FindMPI.cmake b/Modules/FindMPI.cmake index 477fa6b..716df50 100644 --- a/Modules/FindMPI.cmake +++ b/Modules/FindMPI.cmake @@ -34,4 +34,10 @@ IF("${MPI_LIBRARY}" MATCHES "mpich.rts") SET(MPI_EXTRA_LIBRARY msglayer.rts devices.rts rts.rts devices.rts CACHE STRING "Additional MPI libs" FORCE) ENDIF("${MPI_LIBRARY}" MATCHES "mpich.rts") +INCLUDE(FindPackageHandleStandardArgs) + +# handle the QUIETLY and REQUIRED arguments and set LIBXML2_FOUND to TRUE if +# all listed variables are TRUE +FIND_PACKAGE_HANDLE_STANDARD_ARGS(MPI DEFAULT_MSG MPI_LIBRARY MPI_INCLUDE_PATH) + MARK_AS_ADVANCED(MPI_INCLUDE_PATH MPI_LIBRARY MPI_EXTRA_LIBRARY) |