Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMake: FindPETSc must not overwrite CMAKE_Fortran_FLAGS #1464

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
CMake: FindPETSc must not overwrite CMAKE_Fortran_FLAGS
  • Loading branch information
mic84 committed Oct 18, 2020
commit 74bb7ca2d6422fe768e81689acae6408b6ed6053
3 changes: 0 additions & 3 deletions Tools/CMake/FindPETSc.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@ message(STATUS "arch ${PETSC_INCLUDE_DIRS_ARCH}")
set(PETSC_INCLUDE_DIRS ${PETSC_INCLUDE_DIRS_BASE} ${PETSC_INCLUDE_DIRS_ARCH})
message(STATUS "joe ${PETSC_INCLUDE_DIRS}")

#Set Fortran include directories TODO: currently overwrites any given values
set(CMAKE_Fortran_FLAGS ${PETSC_INCLUDE_DIRS})

# Find libraries
find_library(PETSC_LIBRARIES PATHS ${PETSC_DIR}/${PETSC_ARCH}/lib NAMES petsc)

Expand Down