
27 Jun
2010
27 Jun
'10
3:10 p.m.
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. I will then define a preprocessor macro MYPROJECT_LIST_SYSTEMS with the same contents. 1. What is the maximum length of a preprocessor macro (g++4.4, msvc2008/10)? 2. I will create in a source file a list of class instances all with the same names in the passed macro. I reckon I can use a PP sequence, list, tuple or array. Is there any max length here? What is the fastest way in terms of PP time? Regards,