Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

cmake - list does not recognize sub-command FILTER

Tags:

cmake

cmake --version
cmake version 3.5.2

list(FILTER HEADERS EXCLUDE REGEX "^\\..+")

CMake Error at CMakeLists.txt:49 (list):
  list does not recognize sub-command FILTER

Is it problem with version I am using?

Its on ubuntu. Its the latest version one gets from the official ubuntu repository.

Its working fine on Mac with version 3.6.2

What is the least cmake version that offers this?

like image 983
Necktwi Avatar asked Feb 10 '17 19:02

Necktwi


1 Answers

That is to be expected, list(FILTER was introduced in CMake 3.6.

https://cmake.org/cmake/help/v3.5/command/list.html https://cmake.org/cmake/help/v3.6/command/list.html

like image 53
usr1234567 Avatar answered Nov 09 '22 18:11

usr1234567