cmake dependency issue

4 views
Skip to first unread message

tmskz....@gmail.com

unread,
Jan 28, 2021, 8:48:41 AMJan 28
to steinwurf-dev
Dear Devs,

it seems that the recent updates to the CMakeList.txt in kodo-rlnc contain changes, which will break the build process in certain cases (see the output at the end of my mail). I am building kodo as part of my cmake project via:

ExternalProject_Add(KODO_RLNC
                                     GIT_REPOSITORY ${KODO_RLNC_GIT}
                                     GIT_PROGRESS YES
                                     INSTALL_COMMAND ""

This used to work perfectly, aside from the install target seemingly not being present. Can you advise me how I can adapt to the current version?

Thanks!

Bests,
Máté

# after calling make on my project (only the kodo configure step is shown).

[ 16%] Performing configure step for 'KODO_RLNC'
-- The C compiler identification is GNU 9.3.0
-- The CXX compiler identification is GNU 9.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Resolving dependencies...
cmake -G "Unix Makefiles" . 
-- Resolving dependencies...
CMake Error at CMakeLists.txt:25 (add_subdirectory):
  add_subdirectory given source
  "/home/tomoskozi/workspace/arduino_network_codes/build/KODO_RLNC-prefix/src/KODO_RLNC/resolve_symlinks/storage"
  which is not an existing directory.


CMake Error at CMakeLists.txt:29 (add_subdirectory):
  add_subdirectory given source
  "/home/tomoskozi/workspace/arduino_network_codes/build/KODO_RLNC-prefix/src/KODO_RLNC/resolve_symlinks/hex"
  which is not an existing directory.


CMake Error at CMakeLists.txt:33 (add_subdirectory):
  add_subdirectory given source
  "/home/tomoskozi/workspace/arduino_network_codes/build/KODO_RLNC-prefix/src/KODO_RLNC/resolve_symlinks/endian"
  which is not an existing directory.


CMake Error at CMakeLists.txt:37 (add_subdirectory):
  add_subdirectory given source
  "/home/tomoskozi/workspace/arduino_network_codes/build/KODO_RLNC-prefix/src/KODO_RLNC/resolve_symlinks/fifi"
  which is not an existing directory.


CMake Error at CMakeLists.txt:41 (add_subdirectory):
  add_subdirectory given source
  "/home/tomoskozi/workspace/arduino_network_codes/build/KODO_RLNC-prefix/src/KODO_RLNC/resolve_symlinks/kodo-core"
  which is not an existing directory.


-- Configuring incomplete, errors occurred!

Jeppe Pihl

unread,
Jan 28, 2021, 2:22:38 PMJan 28
to tmskz....@gmail.com, steinwurf-dev
Hi Máté,

Thanks for letting us know. Interesting use case! I'll look into it tomorrow. If you have any ideas for a fix please let me know.
While you wait, maybe you can use the previous version.

Cheers,

Jeppe

--
You received this message because you are subscribed to the Google Groups "steinwurf-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to steinwurf-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/steinwurf-dev/980beacd-857c-4824-84ef-70ed70abe0d0n%40googlegroups.com.

Jeppe Pihl

unread,
Jan 29, 2021, 4:43:49 AMJan 29
to tmskz....@gmail.com, steinwurf-dev
Hi Máté,

I made a github gist to show another approach which works for me.

Note this is using FetchContent rather than ExternalProject_Add, so you'll need at least cmake version 3.11.
Let me know how it goes.

Cheers,

Jeppe
Reply all
Reply to author
Forward
0 new messages