[qmplay2] Improve compatibility with new CMake macro