Check out example codes for "list does not recognize sub-command filter". It will help you in understanding the concepts better.

Code Example 1

eg:

CMake Error at build/armv7/googlebenchmark-source/src/CMakeLists.txt:14 (list):
  list does not recognize sub-command FILTER

Solution:
we must choose "cmake" version atleast 3.6
Filter option availble from cmake 3.6 onwords

list(FILTER <list> <INCLUDE|EXCLUDE> REGEX <regular_expression>)

Learn ReactJs, React Native from akashmittal.com