[CMake] some comments to the new INSTALL() command

Alexander Neundorf a.neundorf-work at gmx.net
Tue Mar 7 18:20:20 EST 2006


Hi, 
 
some thoughts to the new INSTALL command: 
 
-it is not possible to set the owner and group, at least I didn't find it 
 
-with the old INSTALL commands the paths were always interpreted relative 
to CMAKE_INSTALL_PREFIX. At least I got used to writing "/bin", "/lib" 
etc. I.e. that the install dir always starts with a "/", so that 
"${CMAKE_INSTALL_PREFIX}${LIB_INSTALL_DIR}"  gives the absolute target 
directory. 
Now it is very nice that one can specify different install paths with the 
new INSTALL command. But in order to be installed relative to 
CMAKE_INSTALL_PREFIX, now "bin" and "lib" have to be used instead of 
"/bin" and "/lib". Just because people are used to start the path with a 
"/" I think this may lead to problems for many people where stuff is 
suddenly installed to /bin and /lib instead of 
${CMAKE_INSTALL_PREFIX}/[bin|lib]. 
Maybe it would be better to have two different arguments, "DESTINATION" 
and "ABS_DESTINATION" or something like this. 
 
-now that it is possible to set the permissions with INSTALL(), it would 
be also nice if I could make a file executable with FILE(PERMISSIONS ...) 
or something like this. This would make it possible to use FILE(WRITE...) 
to create executable scripts. Now I have to use configure_file() and make 
the source file already executable. 
 
-how about a INSTALL( [REMOVE|REMOVE_DIR] ...) to remove files during 
installation ? 
 
Bye 
Alex 
 
 
 

-- 
Bis zu 70% Ihrer Onlinekosten sparen: GMX SmartSurfer!
Kostenlos downloaden: http://www.gmx.net/de/go/smartsurfer


More information about the CMake mailing list