Skip to content

file: Fix crash on GLOB with no expressions after LIST_DIRECTORIES

Brad King requested to merge brad.king/cmake:file-GLOB-empty-no-crash into master

Since commit a2c068a7 using LIST_DIRECTORIES followed by no expression causes a crash. Fix the logic to avoid the crash.

Fixes: #16565 (closed)

Merge request reports