Page MenuHomePhabricator

[CMake] Avoid REVERSE on empty list

Authored by svenvh on Sep 7 2018, 9:23 AM.



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.

Diff Detail

Event Timeline

svenvh created this revision.Sep 7 2018, 9:23 AM
joey accepted this revision.Sep 25 2018, 3:26 AM
joey added a subscriber: joey.


This revision is now accepted and ready to land.Sep 25 2018, 3:26 AM
This revision was automatically updated to reflect the committed changes.