We need some bigger CMake improvements, but these changes already help our usecase :)
mentioned in commit 428ebfa7
merged