[petsc-users] issue with cmake
Alfredo Jaramillo
ajaramillopalma at gmail.com
Tue Mar 19 10:07:50 CDT 2024
Dear developers,
Please excuse me if this issue is a bit off-topic.
I'm trying to compile dolfinx. There is one compilation step where cmake is
used with the CMakeLists.txt in this link:
https://urldefense.us/v3/__https://github.com/FEniCS/dolfinx/blob/main/cpp/CMakeLists.txt__;!!G_uCfscf7eWS!fO0ZzQfd4dg7-t5nIfqoY8yaP-aPJfvnkuYMQy6S4_BkbdH7bUVHSl331_PvqeNJtWBCKqR1lKQXd5uktKEo0WvNO5JaujY$
where PETSC configuration is got by doing:
===================================================
# Check for PETSc
find_package(PkgConfig REQUIRED)
set(ENV{PKG_CONFIG_PATH}
"$ENV{PETSC_DIR}/$ENV{PETSC_ARCH}/lib/pkgconfig:$ENV{PETSC_DIR}/lib/pkgconfig:$ENV{PKG_CONFIG_PATH}"
)
pkg_search_module(PETSC REQUIRED IMPORTED_TARGET PETSc>=3.15 petsc>=3.15)
# Check if PETSc build uses real or complex scalars (this is configured in
# DOLFINxConfig.cmake.in)
include(CheckSymbolExists)
set(CMAKE_REQUIRED_INCLUDES ${PETSC_INCLUDE_DIRS})
===================================================
However, compilation fails as it is not able to find some headers, I
printed the variable PETSC_INCLUDE_DIRS and it is empty. So to get it to
compile I included the line:
include_directories($ENV{PETSC_DIR}/include
$ENV{PETSC_DIR}/$ENV{PETSC_ARCH}/include)
My env variables are well set. I'm attaching my configure.log file.
Could this be related to PETSC configuration, and its interaction with
cmake?
Thank you so much.
Alfredo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20240319/10d54063/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: configure.log
Type: text/x-log
Size: 2124693 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20240319/10d54063/attachment-0001.bin>
More information about the petsc-users
mailing list