[CMake] Using Checksum to generate files

Eric Noulard eric.noulard at gmail.com
Wed Aug 12 03:26:48 EDT 2009


2009/8/12 avner cohen <avcoh at yahoo.com>:
>
> Thanks Tyler.
>
> I'm not sure I'm following how this is related to my question.
>
> The solution I'm looking for is to be able to execute or generate a file, ONLY when an out-of-project file is being modified (which is why I tried to use checksum caching). How is this condition satisifed in the below link?

As far as I understand your testcase I think both Tyler and Michael are right.
Why do you state that "when an out-of-project file is being modified"
your IDLs files are in the project right?

Your example says:
-I ${PROJECT_SOURCE_DIR}IDLs ${PROJECT_SOURCE_DIR}/IDLs/CORBAStructDefs.idl

so the COMPILE_IDL of Michael should be just fine, or are we missing something?

-- 
Erk
Membre de l'April - « promouvoir et défendre le logiciel libre » -
http://www.april.org


More information about the CMake mailing list