If required_libs happens to remain empty, CMake would bail out with:
list sub-command REVERSE requires list to be present.
Fix by ensuring we do not attempt to reverse an empty list.
LGTM