cmake_find_petsc
authorDebian Science Team <debian-science-maintainers@lists.alioth.debian.org>
Wed, 18 Nov 2020 16:09:19 +0000 (16:09 +0000)
committerAnton Gladky <gladk@debian.org>
Wed, 18 Nov 2020 16:09:19 +0000 (16:09 +0000)
===================================================================

Gbp-Pq: Name cmake_find_petsc.patch

cmake/templates/DOLFINConfig.cmake.in

index bdad95e77383d8c8ae9d14897ab557f0359360b7..afe70a3c3092c7a169cff6e3a3869985496409fe 100644 (file)
@@ -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")