How libraries looks like in archlinux?

There is an software I want to install, but first it need to check all their dependencies in cmake, so my problem comes installing the dependencies “petsc” (which I installed using the AUR) because it is installed in /opt instead of /usr

FIND_LIBRARY(
 FIND_LIBRARY(
  PETSC_LIB_PETSCDM
  NAMES
    petscdm
  PATHS
    /usr/lib
    /usr/local/lib
    ${PETSC_DIR}/${PETSC_ARCH}/lib
  )

So my problem can be solved adding a line with the right path, but:
I don’t know how an Archlinux library looks like:

Pamac is quite nice to offer a view with all files installed in petsc, so I collected them an so they are:

/opt/petsc/linux-c-opt/include/petsc/finclude/petscdm.h
/opt/petsc/linux-c-opt/include/petscdm.h
/opt/petsc/linux-c-opt/include/petscdm.mod

Which one of those is the library cmake needs?

EDIT:
There is a folder called lib, but I can’t see the files I need from:

Classic XY Problem.

What software?

We can’t help unless we know what you’re actually trying to build.

It is xc

Apparently the path /opt/petsc/linux-c-opt/lib/ contains the necessary libraries, I still don’t know which file from this folder is the library. I guess the files with .so are the ones I was looking for

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.