HomePhabricator

[CMake] Avoid REVERSE on unset variable

Authored by svenvh on Sep 26 2018, 3:14 AM.

Description

[CMake] Avoid REVERSE on unset variable

If required_libs happens to remain unset, CMake would fail with:

list sub-command REVERSE requires list to be present.

Fix by ensuring we do not attempt to reverse an unset variable.

Reported by Tu Vuong.

Differential Revision: https://reviews.llvm.org/D51799

llvm-svn: 343088

Details

Committed
svenvhSep 26 2018, 3:14 AM
Differential Revision
D51799: [CMake] Avoid REVERSE on empty list
Parents
rG9123b7ebea4b: [unittest] Fix NativeProcessProtocolTest.cpp (NFC)
Branches
Unknown
Tags
Unknown