[CMake] Why SET() not support regular expression ?

Daniel daniel at connect2.com
Wed Jan 23 00:59:43 EST 2008


pepone.onrez wrote:
> There isn't any way for GLOB runs every time and view if there is new 
> files in the GLOB?
> or other way for adding multiple files with a regular expression and get 
> it update when needed?
> 
> a custom macro can do this?
> 
> Any other ideas for adding multiple files and get it updated automatically.
> 
> Thanks
> 

FILE does recalculate the GLOB every time CMake is run, but CMake is not invoked 
every time you type make.  CMake is ran once to setup the build directory, but 
after that when you run make it will call cmake only if a CMakeLists.txt is 
modified.

So the only way to run the FILE command at each build would be to run cmake at 
every build.  This can be done, but it would be a waste time.
--
Daniel


More information about the CMake mailing list