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

(cmake branch) Lapack not found because of target name #37

Open
wavepacket opened this issue Jun 11, 2023 · 0 comments
Open

(cmake branch) Lapack not found because of target name #37

wavepacket opened this issue Jun 11, 2023 · 0 comments

Comments

@wavepacket
Copy link

I have installed packages "openblas" and "lapack" through vcpkg, then tried to build the tensor library on top of it, using the vcpkg install dir as CMAKE_PREFIX_PATH.

This fails to find lapack. Upon deeper investigation, it turns out that Lapack is actually found, but the lapack config file introduces a new CMake target "lapack", while the tensor library expects a CMake target called LAPACK::LAPACK (CMakeLists.txt, line 116). This fails the check for the import target's existence (cmake/TensorDependencies.cmake line 54), and the CMake step aborts.

I guess there is a reason why the import target is called such, and namespacing targets is generally a good idea, but this somehow does not match the LAPACK libraries that I have here.

I can of course work around by explicitly specifying TENSOR_lapack_CXXFLAGS and TENSOR_lapack_LDFLAGS, but this is somewhat inconvenient.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant