2013/3/20 Theodore Papadopoulo <[email protected]>: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On 03/20/2013 05:01 PM, Eric Noulard wrote: >> 2013/3/20 Theodore Papadopoulo <[email protected]>: > >>>> And do you observe differences when you do that? >>> >>> As I said above, no there is no difference in my case because the >>> set of file is fixed. But the difference will appear if a new >>> file is added in a component. >> >> No I don't think so, but I shall check with an example. > > I'm confident you will see the problem. > >> Theoretical explanation is: the variable (@ or $) get expanded >> when CPack runs (i.e. at CPack time) not when CMake runs (i.e. at >> CMake time) so adding a file to the component implies >> CMakeLists.txt change which will trigger CMake re-run then when >> CPack run the content of CPACK_RPM_* will be updated as well. > > But then the $ should be escaped because the ${} are also expanded in > the string of the file(WRITE ...).
Yes right off-course I make a confusion and forgot we write then configure etc... We need \@. -- Erk Le gouvernement représentatif n'est pas la démocratie -- http://www.le-message.org -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
