File: python_cmake_module_path.patch

package info (click to toggle)
dolfinx 2019.2.0~git20210130.c14cb0a-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 5,584 kB
  • sloc: cpp: 48,110; python: 9,536; xml: 9,114; makefile: 261; sh: 17
file content (19 lines) | stat: -rw-r--r-- 705 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Index: dolfinx/python/CMakeLists.txt
===================================================================
--- dolfinx.orig/python/CMakeLists.txt	2021-01-26 08:42:48.895934384 +0100
+++ dolfinx/python/CMakeLists.txt	2021-01-26 09:04:59.924739236 +0100
@@ -2,6 +2,14 @@
 
 PROJECT(dolfinx_pybind11)
 
+# add cmake path to dolfinx installed for Debian mid-build
+if ($ENV{PETSC_DIR} MATCHES ".*complex.*")
+set (BUILD_TYPE "complex")
+else()
+set (BUILD_TYPE "real")
+endif()
+set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/../debian/tmp-${BUILD_TYPE}/usr/lib/${CMAKE_LIBRARY_ARCHITECTURE}/cmake/dolfinx)
+
 find_package(DOLFINX REQUIRED)
 
 # Set C++ standard before finding pybind11