Removes broken conditional check.
The FindPetsc module would check for a PETSC_ROOT and not attempt to look for mpi and the petsc header if this was not set, which it in most cases won't be. If the variable is set then the conditional include is redundant, as it will search the explicitly passed paths first anyways.
This commit is contained in:
1 parent
18b6b4c566
commit
3204518bcc
1 file changed
-4
@@ -67,24 +67,20 @@ if (Petsc_ROOT)
|
||||
set (PETSC_ROOT "${Petsc_ROOT}")
|
||||
endif (Petsc_ROOT)
|
||||
if (NOT PETSC_NORMAL_INCLUDE_DIR)
|
||||
if (PETSC_ROOT)
|
||||
find_path (PETSC_NORMAL_INCLUDE_DIR
|
||||
NAMES "petsc.h"
|
||||
PATHS ${PETSC_ROOT}
|
||||
PATH_SUFFIXES "petsc-3.4.4" "include"
|
||||
NO_DEFAULT_PATH
|
||||
)
|
||||
endif (PETSC_ROOT)
|
||||
endif (NOT PETSC_NORMAL_INCLUDE_DIR)
|
||||
if (NOT PETSC_MPIUNI_INCLUDE_DIR)
|
||||
if (PETSC_ROOT)
|
||||
find_path (PETSC_MPIUNI_INCLUDE_DIR
|
||||
NAMES "mpi.h"
|
||||
PATHS ${PETSC_ROOT}/include
|
||||
PATH_SUFFIXES "mpiuni"
|
||||
NO_DEFAULT_PATH
|
||||
)
|
||||
endif (PETSC_ROOT)
|
||||
endif (NOT PETSC_MPIUNI_INCLUDE_DIR)
|
||||
# look for actual Petsc library
|
||||
if (NOT PETSC_LIBRARY)
|
||||
|
||||
Reference in new issue
Block a user