Open myzinsky opened 2 weeks ago
I think this is Darwin specific - Maybe @tfcollins can have a look?
This seems to have been solved here https://github.com/analogdevicesinc/libad9361-iio/issues/130
@myzinsky does the other issue solve this one (I'm not sure - they looked seperate to me).
-Robin
Somehow magically yes. However, I would prefer to use FetchContent_Declare
instead of ExternalProject_Add
, as for many other projects.
Just consider this minimal CMakeLists.txt:
When I want to build this project, it fails with the following error:
So it seems that cmake places the generated framework
iio.framework
not where it actually expects it. I can find the file at:build/_deps/libiio-build/iio.framewok
Seems that libiio uses CMAKE_BINARY_DIR variable when create the version file: CMakeLists.txt:374. Most likely, the project expects given directory to refer to the project's binary directory. So that makes it impossible to build up proper projects using FetchContent. Would there be a quick solution to support this?