In a properly sited mosque , it will be set perpendicular to a line leading to Mecca . The qiblah wall should , in a properly oriented mosque , be set perpendicular to a line leading to Mecca , the location of the Kaaba .