Skip to content

Exported CMake targets #28

@pghysels

Description

@pghysels

I'm using ScaLAPACK in my code, and in my CMakeLists.txt, I try to find ScaLAPACK using just:
find_package(SCALAPACK)
On both ubuntu 20.04 and Fedora 32, this finds the exported .cmake file.
However, it looks like there is something wrong in the installed scalapack-targets.cmake file.
On ubuntu I get:

CMake Error at /usr/lib/cmake/scalapack-2.1.0.openmpi/scalapack-targets.cmake:79 (message):
  The imported target "scalapack" references the file

     "/usr/lib/libscalapack-openmpi.so.2.1.0"

  but this file does not exist.  Possible reasons include:

  * The file was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and contained

     "/usr/lib/cmake/scalapack-2.1.0.openmpi/scalapack-targets.cmake"

  but not all the files it references.

Call Stack (most recent call first):
  /usr/lib/cmake/scalapack-2.1.0.openmpi/scalapack-config.cmake:2 (include)
  CMakeLists.txt:296 (find_package)

On Fedora 32, I get a similar error:

CMake Error at /usr/lib64/cmake/scalapack-2.1.0/scalapack-targets.cmake:79 (message):
  The imported target "scalapack" references the file

     "/usr/lib64/libscalapack.so.2.1.0"

  but this file does not exist.  Possible reasons include:

  * The file was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and contained

     "/usr/lib64/cmake/scalapack-2.1.0/scalapack-targets.cmake"

  but not all the files it references.

Call Stack (most recent call first):
  /usr/lib64/cmake/scalapack-2.1.0/scalapack-config.cmake:2 (include)
  CMakeLists.txt:296 (find_package)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions