[CMake] Recompiling source file multiple times

Belcourt, Kenneth kbelco at sandia.gov
Mon Oct 11 16:04:42 EDT 2010


Hi,

I did a quick scan looking for this but didn't see this mentioned in  
the FAQ.

Is there a documented process for compiling a single source file  
multiple times?  For example, the UMFPACK library need to compile most  
source files at least twice with a different set of defined macros for  
each build.  They often use -DDINT for one compilation and then  
undefined -DDINT and define -DDLONG.  Anyone know a good way to handle  
this?

Thanks.

-- Noel




More information about the CMake mailing list