There's no textbook or industry-standard definition (aside from the unambiguously "square" ideal wave, that cannot exist as a real signal), so we default to good old language and ontology.
It might be useful to think of "square" as a loose, catch-all, or general term for waves that are, in various part, made by intent (say from digital sources), functionally (clipping to "square up" a softer wave?), or descriptively (a signal with a sharply bimodal histogram, both in terms of voltage, and temporally; i.e., it spends most of its time "up", then most of its time "down", and little inbetween, and only those two states per cycle). This includes waves that have a short risetime in relation to their period (say, <20%?), that may be "square" in terms of the literal angle between edges and flats, or "square" in terms of some specific range of duty cycle (near 50%, say), or even "square" in terms of some fixed ratio of voltage to time.
As a result, when speaking of a more specific signal, do provide specifiers, to make clear what meaning or description you're after.

For example: a PWM square wave (and what phase reference if any), a sigma-delta bitstream, SPI (clock being periodic or gated), I2C (pulse widths being erratic, determined by protocol; rise and fall asymmetric), etc.
Tim