AnsweredAssumed Answered

Including libiio in a CMakeLists.txt using add_subdirectory causes configuration fail

Question asked by EdwardK on May 21, 2015
Latest reply on Oct 16, 2015 by larsc

pcercuei

 

I am planning on using libiio in my project and believe that the community would benefit from a small change to the CMakelists.txt file.

I included the libiio subdirectory into my project as follows: add_subdirectory(lib/libiio)

 

running cmake in my build subdirectory results in the following errors

 

CMake Error: File /home/user/sw/myproject_top_level/Doxyfile.in does not exist.

CMake Error at lib/libiio/CMakeLists.txt:183 (configure_file):
  configure_file Problem configuring file

CMake Error at lib/libiio/CMakeLists.txt:185 (file):
  file COPY cannot find "/home/user/sw/myproject_top_level/doc".


I have attached a simple patch that fixes this issue.


I have included libiio as a git submodule and as such this change would allow me to keep up with your updates seamlessly.


Thanks


Ed

Attachments

Outcomes