cmake: fix versioninfo for out-of-source builds