Re: [CMake] Setting the installation order of a script

2011-07-28 Thread Michael Hertling
On 07/15/2011 05:41 PM, David Cole wrote: > On Fri, Jul 15, 2011 at 10:55 AM, Michael Hertling > wrote: >> On 07/14/2011 02:34 PM, David Cole wrote: >>> The only way to guarantee that your install SCRIPT and CODE segments >>> run last is to put them in their own subdirectory, and add it last. >>>

Re: [CMake] Setting the installation order of a script

2011-07-15 Thread Rolf Eike Beer
Am Donnerstag, 14. Juli 2011, 10:51:27 schrieb Mathias Tausig: > Hy! > > My CMakeLists.txt in the top directory looks like this: > > ADD_SUBDIRECTORY(dir1) > ADD_SUBDIRECTORY(dir2) > INSTALL (SCRIPT setpermissions.cmake) > > setpermissions.cmake changes some file-owner permissions of the stuff >

Re: [CMake] Setting the installation order of a script

2011-07-15 Thread David Cole
On Fri, Jul 15, 2011 at 10:55 AM, Michael Hertling wrote: > On 07/14/2011 02:34 PM, David Cole wrote: >> The only way to guarantee that your install SCRIPT and CODE segments >> run last is to put them in their own subdirectory, and add it last. >> >> i.e. : >> dir3/CMakeLists.txt: >> INSTALL (SCRI

Re: [CMake] Setting the installation order of a script

2011-07-15 Thread Michael Hertling
On 07/14/2011 02:34 PM, David Cole wrote: > The only way to guarantee that your install SCRIPT and CODE segments > run last is to put them in their own subdirectory, and add it last. > > i.e. : > dir3/CMakeLists.txt: > INSTALL (SCRIPT setpermissions.cmake) > > CMakeLists.txt: > ADD_SUBDIRECTORY(d

Re: [CMake] Setting the installation order of a script

2011-07-14 Thread David Cole
The only way to guarantee that your install SCRIPT and CODE segments run last is to put them in their own subdirectory, and add it last. i.e. : dir3/CMakeLists.txt: INSTALL (SCRIPT setpermissions.cmake) CMakeLists.txt: ADD_SUBDIRECTORY(dir1) ADD_SUBDIRECTORY(dir2) # last, so it's install rules ru

[CMake] Setting the installation order of a script

2011-07-14 Thread Mathias Tausig
Hy! My CMakeLists.txt in the top directory looks like this: ADD_SUBDIRECTORY(dir1) ADD_SUBDIRECTORY(dir2) INSTALL (SCRIPT setpermissions.cmake) setpermissions.cmake changes some file-owner permissions of the stuff that has been installed from dir1 and dir2. The problem is: if I execute "make ins