cmake: file(RELATIVE_PATH) needs 2 absolute paths (cherry picked from commit 7774de0fe364fa997d58f2faa2199054d37bedf6)