Closed halirutan closed 3 years ago
I didn't have a too detailed look, but
Linking CXX static library libkfr_dft.a
and
/usr/bin/ld: cannot find -lkfr-dft
suggests, that you need to change the dash in your cmakelists to a underscore
That happens, when you expect the error to be in the cmake config and overlook a simple dash for 2 hours..
I created a minimal example in this repository and used CMake 1.17 and clang 9. I can build kfr itself successfully, but when I try to use it as a dependency in this simple project, I cannot link against kfr_dft. The
CMakeLists.txt
of the test-project looks like described in the documentationHowever, running CMake gives a warning for the visibility of the libraries, which might be a hint that they are not exported correctly:
When compiling the test-project, I see the following output:
Finally, what I eventually want is to not include the kfr sources at all in my project and use CMake's
FetchContent_Declare
to automatically retrieve the release of kfr like I do for other libraries.