Skip to content

Commit b75af68

Browse files
committed
Add instructions to compile FEniCS Basix as a static library
1 parent 1fd7c13 commit b75af68

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

CMakeLists.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,12 +104,15 @@ find_package(pybind11 CONFIG REQUIRED)
104104
find_package(BLAS REQUIRED)
105105
find_package(LAPACK REQUIRED)
106106

107+
# Force Basix to compile statically and embed directly into feelmri extensions
108+
set(BUILD_SHARED_LIBS OFF CACHE BOOL "Force static libraries" FORCE)
109+
107110
include(FetchContent)
108111
FetchContent_Declare(
109112
basix
110113
GIT_REPOSITORY https://github.com/FEniCS/basix.git
111-
GIT_TAG v0.10.0 # Matches the >=0.10.0 requirement in your pyproject.toml
112-
SOURCE_SUBDIR cpp # Tells CMake to look for CMakeLists.txt inside the cpp/ folder
114+
GIT_TAG v0.10.0
115+
SOURCE_SUBDIR cpp
113116
)
114117

115118
FetchContent_GetProperties(basix)

0 commit comments

Comments
 (0)