MantisBT - CMake
View Issue Details
0001481CMakepublic2005-01-14 09:292006-02-19 15:27
grankis 
Brad King 
normalmajoralways
closedfixed 
 
 
0001481: INSTALL_TARGET cannot be used for multiple install locations
I am currently using CMake 2.0.3 on a Solaris platform. I would like to install the same target at several places in the installation tree, by using several INSTALL_TARGET commands, e.g.
INSTALL_TARGET(/usr/bin myprogram)
INSTALL_TARGET(/usr/local/bin myprogram)

This does not work, only the last written command is executed by "make install".

I consider it as a bug since INSTALL_FILES and INSTALL_PROGRAMS does not have this restriction and there is no documentation saying that INSTALL_TARGET has this restriction. In addition I cannot see any good reason for why INSTALL_TARGET should not be used for multiple installations of the same target.
No tags attached.
Issue History

Notes
(0003755)
Brad King   
2006-02-19 15:17   
I'm assigning this bug to myself since I'm about to fix it.
(0003759)
Brad King   
2006-02-19 15:27   
Bug#2691 requests a new installation framework. Enough of it has been created to fix this bug which I'm now closing.