Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ifpack2: Adds missing cmake logic to address test dependency on Xpetra
The Ifpack2_UnitTestSingleProcessILUT.cpp test has a required dependency on Xpetra. There is an optional dependency on Xpetra for the library, but if someone uses a configuration like this: cmake \ -DCMAKE_C_COMPILER=mpicc \ -DCMAKE_CXX_COMPILER=mpicxx \ -DCMAKE_Fortran_COMPILER=mpif77 \ -DCMAKE_CXX_FLAGS="-O3 -fPIC" \ -DCMAKE_C_FLAGS="-O3 -fPIC" \ -D Trilinos_ENABLE_Tpetra:BOOL=ON \ -D Trilinos_ENABLE_Belos:BOOL=ON \ -D Trilinos_ENABLE_Ifpack2:BOOL=ON \ -D Trilinos_ENABLE_ALL_OPTIONAL_PACKAGES:BOOL=OFF \ -D Teuchos_ENABLE_COMPLEX:BOOL=OFF \ -D Trilinos_ENABLE_COMPLEX:BOOL=OFF \ -D Trilinos_ENABLE_OpenMP:BOOL=OFF \ -D CMAKE_VERBOSE_MAKEFILE:BOOL=ON \ -D Trilinos_ENABLE_EXAMPLES:BOOL=ON \ -D Trilinos_ENABLE_TESTS:BOOL=ON \ -DTPL_ENABLE_MPI:BOOL=ON \ -DTPL_ENABLE_BLAS=ON \ -DTPL_ENABLE_LAPACK=ON \ ../../ Then Xpetra will not be enabled since optional dependencies are off, yet the test will fail to build due to the absence of Xpetra. This commit adds logic to the CMakeLists file to conditionally build the Ifpack2_UnitTestSingleProcessILUT test if Xpetra and Galeri are enabled. Furthermore, it removes the inclusion of Xpetra and Galeri headers in the Ifpack2_UnitTestILUT.cpp file, as they are not used.
- Loading branch information