Thanks you, this can be marked as sloved.
Tried your suggestion but it did not work, this is a huge cmake-project with about 800 cpp different projects. However, I managed to get it working in the end.