scalapack icon indicating copy to clipboard operation
scalapack copied to clipboard

Exported CMake targets

Open pghysels opened this issue 3 years ago • 0 comments

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)

pghysels avatar Oct 07 '20 17:10 pghysels