From b0ee025e6d01972bf171064799d2572e5ecfe49b Mon Sep 17 00:00:00 2001 From: Mikhail Komarov Date: Sat, 3 Aug 2019 18:12:00 +0300 Subject: [PATCH] Missing includes appended. --- cmake/packages/FindGMP.cmake | 1 + cmake/packages/FindGMPXX.cmake | 1 + cmake/packages/FindMPC.cmake | 1 + cmake/packages/FindMPFR.cmake | 1 + cmake/packages/FindMPIR.cmake | 1 + cmake/packages/FindMPIRXX.cmake | 2 +- cmake/packages/FindTomMath.cmake | 1 + 7 files changed, 7 insertions(+), 1 deletion(-) diff --git a/cmake/packages/FindGMP.cmake b/cmake/packages/FindGMP.cmake index 2b50364d4..7f79e3e9b 100644 --- a/cmake/packages/FindGMP.cmake +++ b/cmake/packages/FindGMP.cmake @@ -76,6 +76,7 @@ endif() find_library(GMP_LIBRARIES gmp PATHS $ENV{GMPDIR} ${LIB_INSTALL_DIR}) +include(FindPackageHandleStandardArgs) find_package_handle_standard_args(GMP DEFAULT_MSG GMP_INCLUDE_DIRS GMP_LIBRARIES GMP_VERSION_OK) if(GMP_FOUND) diff --git a/cmake/packages/FindGMPXX.cmake b/cmake/packages/FindGMPXX.cmake index 1ac867e4d..c07eb5026 100644 --- a/cmake/packages/FindGMPXX.cmake +++ b/cmake/packages/FindGMPXX.cmake @@ -35,5 +35,6 @@ if(GMP_FOUND) PATHS ${GMP_LIBRARIES_DIR_SEARCH} DOC "Path to the GMPXX library") + include(FindPackageHandleStandardArgs) find_package_handle_standard_args(GMPXX "DEFAULT_MSG" GMPXX_LIBRARIES GMPXX_INCLUDE_DIRS) endif() diff --git a/cmake/packages/FindMPC.cmake b/cmake/packages/FindMPC.cmake index ebfe5fbe5..637c30ba1 100644 --- a/cmake/packages/FindMPC.cmake +++ b/cmake/packages/FindMPC.cmake @@ -70,6 +70,7 @@ endif(MPC_INCLUDE_DIRS) find_library(MPC_LIBRARIES mpc PATHS $ENV{GMPDIR} $ENV{MPFRDIR} $ENV{MPCDIR} ${LIB_INSTALL_DIR}) +include(FindPackageHandleStandardArgs) find_package_handle_standard_args(MPC DEFAULT_MSG MPC_INCLUDE_DIRS MPC_LIBRARIES MPC_VERSION_OK) mark_as_advanced(MPC_INCLUDE_DIRS MPC_LIBRARIES) diff --git a/cmake/packages/FindMPFR.cmake b/cmake/packages/FindMPFR.cmake index 38f1d9214..de13d1904 100644 --- a/cmake/packages/FindMPFR.cmake +++ b/cmake/packages/FindMPFR.cmake @@ -70,6 +70,7 @@ endif() find_library(MPFR_LIBRARIES mpfr PATHS $ENV{GMPDIR} $ENV{MPFRDIR} ${LIB_INSTALL_DIR}) +include(FindPackageHandleStandardArgs) find_package_handle_standard_args(MPFR DEFAULT_MSG MPFR_INCLUDE_DIRS MPFR_LIBRARIES MPFR_VERSION_OK) mark_as_advanced(MPFR_INCLUDE_DIRS MPFR_LIBRARIES) \ No newline at end of file diff --git a/cmake/packages/FindMPIR.cmake b/cmake/packages/FindMPIR.cmake index d16f82d62..4f3f441a0 100644 --- a/cmake/packages/FindMPIR.cmake +++ b/cmake/packages/FindMPIR.cmake @@ -75,6 +75,7 @@ endif() find_library(MPIR_LIBRARIES gmp PATHS $ENV{MPIRDIR} ${LIB_INSTALL_DIR}) +include(FindPackageHandleStandardArgs) find_package_handle_standard_args(MPIR DEFAULT_MSG MPIR_INCLUDES MPIR_LIBRARIES MPIR_VERSION_OK) if(MPIR_FOUND) diff --git a/cmake/packages/FindMPIRXX.cmake b/cmake/packages/FindMPIRXX.cmake index 4d95ae998..afe6dcd60 100644 --- a/cmake/packages/FindMPIRXX.cmake +++ b/cmake/packages/FindMPIRXX.cmake @@ -32,6 +32,6 @@ if(MPIR_FOUND) DOC "Path to the MPIRXX library" ) - + include(FindPackageHandleStandardArgs) find_package_handle_standard_args(MPIRXX "DEFAULT_MSG" MPIRXX_LIBRARIES MPIRXX_INCLUDE_DIRS) endif() diff --git a/cmake/packages/FindTomMath.cmake b/cmake/packages/FindTomMath.cmake index 010a79284..e83b10731 100644 --- a/cmake/packages/FindTomMath.cmake +++ b/cmake/packages/FindTomMath.cmake @@ -19,6 +19,7 @@ find_library(TomMath_LIBRARY NAMES ${TomMath_NAMES}) # handle the QUIETLY and REQUIRED arguments and set TIFF_FOUND to TRUE if # all listed variables are TRUE +include(FindPackageHandleStandardArgs) find_package_handle_standard_args(TomMath DEFAULT_MSG TomMath_LIBRARY TomMath_INCLUDE_DIR) if(TOMMATH_FOUND)