Fix cmake setting for apps