[CMake] Do an execute_process before compilation

Darius Blaszyk dhkblaszyk at zeelandnet.nl
Sat Aug 15 04:21:11 EDT 2009


My application links an object file in. This objectfile is not a c++ -
code file but some other file that needs to be linked in. The problem I
have now is that each time I change this file I need to run the linker
from a shell script manually and only then I can issue a make command.
Is there a way to automate that? In other words can cmake do an
execute_process before attempting to compile my application if I issue a
make?

Regards, Darius



More information about the CMake mailing list