Skip to content

Fix using sila_cpp in a submodule

Dominik Schmidt requested to merge dschmidt1/sila_cpp:submodule_usage into master

Description

I introduced a CMake var named SILA_CPP_SOURCE_DIR which contains the root path of sila_cpp. I use it instead of CMAKE_SOURCE_DIR because that points to the root dir of the project using sila_cpp as submodule.

What is the current behavior?

Build is broken when used as a submodule. Examples are built by default.

What is the new/improved behavior?

sila_cpp can be built as submodule. Examples are only built in standalone mode.

Does this MR introduce any breaking changes?

Other information

Checklist:

  • The commit messages follow our guidelines
  • If necessary, tests have been added
  • Docs have been added / updated
  • CHANGELOG.md has been updated in the Added/Changed section
Edited by Dominik Schmidt

Merge request reports

Loading