Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LAPACK master does not compile with CMake 3.9 #994

Open
1 of 2 tasks
christoph-conrads opened this issue Mar 1, 2024 · 0 comments
Open
1 of 2 tasks

LAPACK master does not compile with CMake 3.9 #994

christoph-conrads opened this issue Mar 1, 2024 · 0 comments

Comments

@christoph-conrads
Copy link
Contributor

christoph-conrads commented Mar 1, 2024

Description

The latest LAPACK code in commit fe843f9 fails to compile with CMake 3.10 because object files are linked against a library. This features was only added in CMake 3.12 (cf. CMake: target_link_libraries -- Linking Object Libraries).

Example:

$ cmake ~/lapack
[snip]
CMake Error at SRC/CMakeLists.txt:530 (target_link_libraries):
  Object library target "lapack_obj" may not link to anything.


-- Configuring incomplete, errors occurred!
See also "/tmp/tmp.CRCZ8x92Ba/CMakeFiles/CMakeOutput.log".
See also "/tmp/tmp.CRCZ8x92Ba/CMakeFiles/CMakeError.log".
$ cmake --version
cmake version 3.10.2

CMake suite maintained and supported by Kitware (kitware.com/cmake).

Other problems breaking CMake 3.9 compatibility:

Possible fixes:

  • Bump the minimum CMake version to 3.12 3.15
  • Do not link object file libraries

Checklist

  • I've included a minimal example to reproduce the issue
  • I'd be willing to make a PR to solve this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant