fix cmake tests
Merge remote-tracking branch 'upstream/master' into next
Merge remote-tracking branch 'freeminer/next' into freeminer_next