File: python_cmake_module_path.patch

package info (click to toggle)
fenics-dolfinx 1%3A0.10.0.post3-1exp5
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 6,012 kB
  • sloc: cpp: 36,535; python: 25,391; makefile: 223; sh: 171; xml: 55
file content (18 lines) | stat: -rw-r--r-- 665 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Index: fenics-dolfinx/python/CMakeLists.txt
===================================================================
--- fenics-dolfinx.orig/python/CMakeLists.txt	2025-11-12 15:49:57.356428489 +0100
+++ fenics-dolfinx/python/CMakeLists.txt	2025-11-12 15:49:57.348711073 +0100
@@ -36,6 +36,13 @@
 # fix is released.
 enable_language(C)
 
+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 CONFIG)
 
 if(DOLFINX_FOUND)