Here is a clip I designed to hold a 40 mm (1 1/2") pipe against the wall.
The backside is flat so that the clip can be fixed with double-sided adhesive or glue. If you need screw holes, you can just drill them into the bracket.