Is it expected that FetchContent_Declare
and find_package
do not produce targets or libraries?
#1114
Labels
FetchContent_Declare
and find_package
do not produce targets or libraries?
#1114
Hi all, I am trying to fetch this repository in my CMake project. I'm on WSL, running GCC 11.4.0 and CMake 3.20. I am calling the following in my
CMakeLists.txt
:This runs without error, but it doesn't seem that my project is actually populated by any targets. Or at least, I don't think it is. I tried querying for any output, and didn't see anything:
So, I tried printing ALL CMake variables containing the text "LAPACK/lapack", and still didn't see a LAPACK_PKG_LIBRARIES variable, or an equivalent:
How can I query this command to be sure that it has the targets I'd expect? And even better, how can I get actual CMake targets from this project? Thanks!
Edit: For additional context, I am consuming the calling project, via ANOTHER project, using
FetchContent
again. However, I get the following errors:My understanding is that this has to do with the fact that lapack/blas aren't being treated as real-deal CMake targets, and I would very much like them to be! The problem occurs when I try to link to
lapack
andblas
in the fetched project:The text was updated successfully, but these errors were encountered: