[CMake] maximum length of a list

Hicham Mouline hicham at mouline.org
Sun Jun 27 11:05:18 EDT 2010


hello

I assign the list of all directories the names of which starts with a
pattern like   pattern_.... to a cmake variable which I then pass as a
preprocessor macro:

FILE(GLOB MYPROJECT_LIST_SYSTEMS RELATIVE ${CMAKE_SOURCE_DIR} system_*)

MYPROJECT_LIST_SYSTEMS is then a cmake "list", a string with semicolon
separators.

What is the maximum number of entries in the list that cmake handles?
Or what is the maximum length of a cmake string?

Regards,



More information about the CMake mailing list