Fix cmake when only one mode of qjson deps is built.