Belos build issue when Tpetra is disabled
Created by: jwillenbring
@pbosler
I was trying to build Belos as part of a new nightly no C++11 build, and it failed in doc/ due to Tpetra not being enabled. Tpetra is an optional dependence for Belos. Here is the error output:
[ 95%] Building CXX object packages/belos/doc/parameterList/CMakeFiles/Belos_ValidParameters.dir/createValidParameterList.cpp.o /home/jmwille/TrilinosTest/Trilinos/packages/belos/doc/parameterList/createValidParameterList.cpp:66:34: error: Tpetra_MultiVector.hpp: No such file or directory In file included from /home/jmwille/TrilinosTest/Trilinos/packages/belos/doc/parameterList/createValidParameterList.cpp:67: /home/jmwille/TrilinosTest/Trilinos/packages/belos/doc/parameterList/../../tpetra/src/BelosTpetraAdapter.hpp:83:31: error: Tpetra_Operator.hpp: No such file or directory In file included from /home/jmwille/TrilinosTest/Trilinos/packages/belos/doc/parameterList/createValidParameterList.cpp:67: /home/jmwille/TrilinosTest/Trilinos/packages/belos/doc/parameterList/../../tpetra/src/BelosTpetraAdapter.hpp:114: error: ‘::Tpetra’ has not been declared ...
This appears to be due to changes made on Nov 17. Here is the critical subset of my cmake arguments:
-DTrilinos_ENABLE_CXX11=OFF
-D Trilinos_ENABLE_TESTS:BOOL=ON
-DCMAKE_C_COMPILER=/usr/lib64/openmpi/bin/mpicc
-DCMAKE_CXX_COMPILER=/usr/lib64/openmpi/bin/mpic++
-DCMAKE_Fortran_COMPILER=/usr/lib64/openmpi/bin/mpif77
-DTrilinos_ENABLE_NOX=ON
-DNOX_ENABLE_LOCA=ON
-DTrilinos_ENABLE_EpetraExt=ON
-DEpetraExt_BUILD_BTF=ON
-DTrilinos_ENABLE_TrilinosCouplings=ON
-DTrilinos_ENABLE_Ifpack=ON
-DTrilinos_ENABLE_Isorropia=ON
-DTrilinos_ENABLE_AztecOO=ON
-DTrilinos_ENABLE_Belos=ON
-DTrilinos_ENABLE_Teuchos=ON
-DTeuchos_ENABLE_COMPLEX=ON
-DTrilinos_ENABLE_Amesos=ON
-DAmesos_ENABLE_KLU=ON
-DTrilinos_ENABLE_Sacado=ON
-DTrilinos_ENABLE_Zoltan=ON
-DTrilinos_ENABLE_ALL_OPTIONAL_PACKAGES=OFF
-DTPL_ENABLE_MPI=ON \
I think it would be possible to basically remove all of the package enables except Belos. You could just ifdef the whole directory essentially if Tpetra isn't enabled, but I wanted to give you the opportunity to be more selective than that.