From: Debian Science Team Date: Sun, 11 Oct 2020 17:08:21 +0000 (+0100) Subject: cmake_find_petsc X-Git-Tag: archive/raspbian/2019.2.0_git20200629.946dbd3-8+rpi1~1^2~4 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=a9a6e84e747629ad880d80cc99da961f758ed512;p=dolfin.git cmake_find_petsc =================================================================== Gbp-Pq: Name cmake_find_petsc.patch --- diff --git a/cmake/templates/DOLFINConfig.cmake.in b/cmake/templates/DOLFINConfig.cmake.in index bdad95e..afe70a3 100644 --- a/cmake/templates/DOLFINConfig.cmake.in +++ b/cmake/templates/DOLFINConfig.cmake.in @@ -16,6 +16,12 @@ endif() # Compute path get_filename_component(DOLFIN_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH) +# Include directories +set(DOLFIN_INCLUDE_DIRS "@CMAKE_INSTALL_PREFIX@/@DOLFIN_INCLUDE_DIR@") + +# The location of the UseDOLFIN.cmake file +set(DOLFIN_USE_FILE "${DOLFIN_CMAKE_DIR}/UseDOLFIN.cmake") + # Library dependencies (contains definitions for IMPORTED targets) # NOTE: DOLFIN demo CMakeLists.txt are written to be stand-alone, as # well as the build system building the demo. Therefore, we need the @@ -36,9 +42,6 @@ set(DOLFIN_CXX_FLAGS "@CMAKE_CXX_FLAGS@") # Linker flags set(DOLFIN_LINK_FLAGS "@CMAKE_EXE_LINKER_FLAGS@") -# Include directories -set(DOLFIN_INCLUDE_DIRS "@CMAKE_INSTALL_PREFIX@/@DOLFIN_INCLUDE_DIR@") - # Third party include directories set(DOLFIN_3RD_PARTY_INCLUDE_DIRS "@DOLFIN_DEP_INCLUDE_DIRECTORIES@;@DOLFIN_DEP_SYSTEM_INCLUDE_DIRECTORIES@") @@ -50,6 +53,3 @@ set(DOLFIN_VERSION_MAJOR "@DOLFIN_VERSION_MAJOR@") set(DOLFIN_VERSION_MINOR "@DOLFIN_VERSION_MINOR@") set(DOLFIN_VERSION_MICRO "@DOLFIN_VERSION_MICRO@") set(DOLFIN_VERSION_STR "@DOLFIN_VERSION@") - -# The location of the UseDOLFIN.cmake file -set(DOLFIN_USE_FILE "${DOLFIN_CMAKE_DIR}/UseDOLFIN.cmake")