apologies if this has been asked before but after spending 4h looking for a solution I figured I will ask this quick question.
I am creating a library that depends on several other libraries which are placed in the lib folder of the root library. Every library has a library.json. The root library has build flags defined in the library.json which include the src directory of each of the nested libraries using -I pathToSrc.
The include paths are working nicely but unfortunately, the linker fails with undefined references i.e. my .cpp files (located in the src directory) are not compiled.
I know that if I specify each of the library src folders with the srcFilter in the root library.json they will compile but I have several srcFilters in the nested libraries that are important for their functioning. Unfortunately, it seems that the srcFilter of the root library will overwrite the srcFilter of the nested library which means I would need to specify the full path of all the srcFilter directives of each nested library in the root library which is a very ugly way of doing this.
What is the proper way of doing this? Is it possible to tell the root library.json to use the srcFilter of the nested library to find my folders?
Thanks a lot!