Changeset View
Changeset View
Standalone View
Standalone View
cmake/modules/FindMPIR.cmake
- This file was added.
1 | # Try to find the MPIR librairies | ||||
---|---|---|---|---|---|
2 | # MPIR_FOUND - system has MPIR lib | ||||
3 | # MPIR_INCLUDE_DIR - the MPIR include directory | ||||
4 | # MPIR_LIBRARIES - Libraries needed to use MPIR | ||||
5 | | ||||
6 | # Copyright (c) 2006, Laurent Montel, <montel@kde.org> | ||||
7 | # Copyright (c) 2018, Thomas Baumgart <tbaumgart@kde.org> | ||||
8 | # | ||||
9 | # Redistribution and use is allowed according to the terms of the BSD license. | ||||
10 | # For details see the accompanying COPYING-CMAKE-SCRIPTS file. | ||||
11 | | ||||
12 | | ||||
13 | if (MPIR_INCLUDE_DIR AND MPIR_LIBRARIES) | ||||
14 | # Already in cache, be silent | ||||
15 | set(MPIR_FIND_QUIETLY TRUE) | ||||
16 | endif (MPIR_INCLUDE_DIR AND MPIR_LIBRARIES) | ||||
17 | | ||||
18 | find_path(MPIR_INCLUDE_DIR NAMES mpir.h ) | ||||
19 | find_library(MPIR_LIBRARIES NAMES mpir libmpir) | ||||
20 | | ||||
21 | include(FindPackageHandleStandardArgs) | ||||
22 | FIND_PACKAGE_HANDLE_STANDARD_ARGS(MPIR DEFAULT_MSG MPIR_INCLUDE_DIR MPIR_LIBRARIES) | ||||
23 | | ||||
24 | mark_as_advanced(MPIR_INCLUDE_DIR MPIR_LIBRARIES) |