Why CMake's module FindLAPACK.cmake does not set `LAPACK_INCLUDE_DIRS`? - Stack Overflow

I am having troubles using CMake.I need to link a C module to LAPACK. Also, this module does #include

I am having troubles using CMake. I need to link a C module to LAPACK. Also, this module does #include <lapacke.h>.

CMake itself and LAPACK are installed in a Conda environment, so they are in a non-standard location.

When I use find_package(LAPACK REQUIRED), I can link to the found library via target_link_libraries(mylibrary PUBLIC LAPACK::LAPACK). However, it does not work for target_include_directories.

And I cannot use LAPACK_INCLUDE_DIRS, because this module does not set it. How to help CMake to compile the module correctly after it successfully found LAPACK.

I am having troubles using CMake. I need to link a C module to LAPACK. Also, this module does #include <lapacke.h>.

CMake itself and LAPACK are installed in a Conda environment, so they are in a non-standard location.

When I use find_package(LAPACK REQUIRED), I can link to the found library via target_link_libraries(mylibrary PUBLIC LAPACK::LAPACK). However, it does not work for target_include_directories.

And I cannot use LAPACK_INCLUDE_DIRS, because this module does not set it. How to help CMake to compile the module correctly after it successfully found LAPACK.

Share Improve this question asked Mar 14 at 16:34 Dmitry KabanovDmitry Kabanov 9211 gold badge8 silver badges24 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

You have to use find_path and look for the header yourself.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744642653a4585533.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信