mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-12-27 07:29:52 +08:00
1cdec38653
We were getting a lot of warnings due to nested `find_package` calls within `Find***.cmake` files. The recommended approach is to use [`find_dependency`](https://cmake.org/cmake/help/latest/module/CMakeFindDependencyMacro.html) in package configuration files. I made this change for all instances. Case mismatches between `Find<Package>.cmake` and calling `find_package(<PACKAGE>`) also lead to warnings. Fixed for `FindPASTIX.cmake` and `FindSCOTCH.cmake`. `FindBLASEXT.cmake` was broken due to calling `find_package_handle_standard_args(BLAS ...)`. The package name must match, otherwise the `find_package(BLASEXT)` falsely thinks the package wasn't found. I changed to `BLASEXT`, but then also copied that value to `BLAS_FOUND` for compatibility. `FindPastix.cmake` had a typo that incorrectly added `PTSCOTCH` when looking for the `SCOTCH` component. `FindPTSCOTCH` incorrectly added `***-NOTFOUND` to include/library lists, corrupting them. This led to cmake errors down-the-line. Fixes #2288. |
||
---|---|---|
.. | ||
ComputeCppCompilerChecks.cmake | ||
ComputeCppIRMap.cmake | ||
Eigen3Config.cmake.in | ||
Eigen3ConfigLegacy.cmake.in | ||
EigenConfigureTesting.cmake | ||
EigenDetermineOSVersion.cmake | ||
EigenDetermineVSServicePack.cmake | ||
EigenSmokeTestList.cmake | ||
EigenTesting.cmake | ||
EigenUninstall.cmake | ||
FindAdolc.cmake | ||
FindBLAS.cmake | ||
FindBLASEXT.cmake | ||
FindCHOLMOD.cmake | ||
FindComputeCpp.cmake | ||
FindEigen2.cmake | ||
FindEigen3.cmake | ||
FindFFTW.cmake | ||
FindGLEW.cmake | ||
FindGMP.cmake | ||
FindGoogleHash.cmake | ||
FindGSL.cmake | ||
FindHWLOC.cmake | ||
FindKLU.cmake | ||
FindLAPACK.cmake | ||
FindMetis.cmake | ||
FindMPFR.cmake | ||
FindPASTIX.cmake | ||
FindPTSCOTCH.cmake | ||
FindSCOTCH.cmake | ||
FindSPQR.cmake | ||
FindStandardMathLibrary.cmake | ||
FindSuperLU.cmake | ||
FindTriSYCL.cmake | ||
FindUMFPACK.cmake | ||
RegexUtils.cmake | ||
UseEigen3.cmake |