Skip to content

How to use FindPETSc.cmake? #19

Description

Hello, I have copied the FindPETSc.cmake to /usr/share/cmake-3.7/Modules (where all the other .cmake files are). However, when I run cmake the following message is shown:

" By not providing "FindPETSC.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "PETSC", but
CMake did not find one. "

This is how FindPETSc.cmake is called in my top level CMakeLists:
find_package(PETSC)
if(PETSC_FOUND)
include_directories(${PETSC_INCLUDE_DIR})
add_definitions( "-DHAS_PETSC" )
endif()

Could you please provide more information?

Thank you.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions