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)
|