[CMake] Bug in TARGET_LINK_LIBRARIES

Brad King brad.king at kitware.com
Fri Feb 10 10:14:15 EST 2006


Filipe Sousa wrote:
>     pos = lib.find_last_not_of(" \t\r\n");
>     if(pos != lib.npos)
>       {
>       lib = lib.substr(0, pos);
> 	//** this code always eats the fist char **
>       }

Actually it always eats the last character but thanks for tracking it 
down.  We've fixed it.  The fix also revealed that the result of this 
whitespace stripping was never even used, otherwise the longer library 
names that survived the bug would have been wrong and not linked. 
That's been fixed too.

Thanks,
-Brad


More information about the CMake mailing list