Re: [CMake] CONFIGURE_FILE and ADD_DEPENDENCIES

2010-03-26 Thread Rupert Brooks
I will now answer my own question. The ADD_CUSTOM_COMMAND way works BUT one must be sure to get the OUTPUT, and the named file on the ADD_LIBRARY line exactly the same. or, said the other way, i made a bonehead typo in my CMakeLists.txt Sorry for the noise, Rupert --

[CMake] CONFIGURE_FILE and ADD_DEPENDENCIES

2010-03-26 Thread Rupert Brooks
Hi, In my build i have a .cpp file (actually many) which is generated from a template using a cmake configure file command. I tried using CONFIGURE_FILE in the CMakeLists.txt, and this works, but if the template is changed, or the .cpp file gets removed, then the file will not be regenerated unle