A CdS
photoresistor has a wide range of values and a wide tolerance , and usually rated at 10 Lux. hence why they always use a pot. They are also sensitive to damage from full sunlight, condensation, shock, ESD, vibration, bent leads
When you design with
photodiode, you the spec of 0.6mA/mW you choose a higher fixed resistor, for the comparator.
You do not need pots because of the consistent accuracy but may choose 10% hysteresis. A daylight sensor will have clear lens pointing at large plastic diffuser to capture a wider average light level. You might use a pot to design the threshold, but then PDs are known to be very consistent. I prefer using 1mm ^2 chip in a 5mm case.
But then I have made some just using an LED as a PD with a load resistor like 1 Meg and a comparator.
If you wanted to set the threshold after sunset or a nautical twilight 1 to 100 lux, you choose the ratio of diode voltage over current.