Skip to content

Commit

Permalink
Use dolfinx get_include to retrieve include path
Browse files Browse the repository at this point in the history
  • Loading branch information
schnellerhase committed Jan 29, 2025
1 parent 87c4386 commit d740da0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions multiphenicsx/cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,7 @@ endif()

# Check for DOLFINx python wrappers
execute_process(
COMMAND
${Python_EXECUTABLE} -c
"import os, sys, dolfinx; print(os.path.join(os.path.dirname(dolfinx.__file__), 'wrappers'))"
COMMAND ${Python_EXECUTABLE} -c "import dolfinx; print(dolfinx.get_include())"
OUTPUT_VARIABLE DOLFINX_PY_WRAPPERS_DIR
RESULT_VARIABLE DOLFINX_PY_WRAPPERS_COMMAND_RESULT
ERROR_VARIABLE DOLFINX_PY_WRAPPERS_COMMAND_ERROR
Expand Down

0 comments on commit d740da0

Please sign in to comment.