Teuchos: Fix #2018
Created by: mhoemmen
@trilinos/teuchos Set Teuchos_ENABLE_COMPLEX
by default, if either
Trilinos_ENABLE_COMPLEX_DOUBLE
or Trilinos_ENABLE_COMPLEX_FLOAT
are
set. Before, Teuchos_ENABLE_COMPLEX
was only set by default if
Trilinos_ENABLE_COMPLEX_DOUBLE
was set.
This should help avoid issues such as #2009 (closed).
@trilinos/teuchos
Motivation and Context
It may be possible in the future for users to set Trilinos_ENABLE_COMPLEX_FLOAT
but not Trilinos_ENABLE_COMPLEX_DOUBLE
. Also, users may not know about the (relatively newer) Trilinos_ENABLE_<SCALAR>
CMake options.
Related Issues
- Related to #2009 (closed)
Checklist
-
My commit messages mention the appropriate GitHub issue numbers. -
My code follows the code style of the affected package(s). -
My change requires a change to the documentation. -
I have updated the documentation accordingly. -
I have read the code contribution guidelines for this project. -
I have added tests to cover my changes. -
All new and existing tests passed. -
No new compiler warnings were introduced. -
These changes break backwards compatibility.