Issue
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?
Solution
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
Answered By - usr1234567