[cmake-developers] Support for list length expression in if()-command?
Brad King
brad.king at kitware.com
Mon Jan 14 06:44:03 EST 2019
On 1/14/19 4:21 AM, Torsten Robitzki wrote:
> if (LENGTH list GREATER 1)
An investigation will be needed to determine whether a policy
is needed to add this to the if() command to avoid possible
behavior changes for existing callers.
For reference, you asked this previously:
https://cmake.org/pipermail/cmake-developers/2018-December/030941.html
I've almost never needed to test the length of a list in CMake
code. It's not very common in my experience. What is your
customer trying to do?
-Brad
More information about the cmake-developers
mailing list