Skip to content

Fix compilation of tests in static builds

Alexander Lohnau requested to merge work/alex/static-tests-fix into master

If we build statically, we can not add the source files twice, because then we have duplicated symbols.

Though for shared builds we need it, because the classes are not exported.

@vkrause @wrobelda You have any cleaner ideas or do you consider this acceptable? Exporting such classes for tests only seemed very hacky, which is why I settled for this solution.

Merge request reports