[CMake] Bug in TARGET_LINK_LIBRARIES

2006-02-10 Thread Filipe Sousa
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi PROJECT(math) ADD_EXECUTABLE(math math.c) TARGET_LINK_LIBRARIES(math m z) Linking C executable math /usr/local/bin/cmake -E remove -f math /usr/bin/gcc -fPIC CMakeFiles/math.dir/math.o -o math -rdynamic TARGET_LINK_LIBRARIES is ignoring

Re: [CMake] Bug in TARGET_LINK_LIBRARIES

2006-02-10 Thread Alexander Neundorf
Von: Filipe Sousa [EMAIL PROTECTED] Hi PROJECT(math) ADD_EXECUTABLE(math math.c) TARGET_LINK_LIBRARIES(math m z) Linking C executable math /usr/local/bin/cmake -E remove -f math /usr/bin/gcc -fPIC CMakeFiles/math.dir/math.o -o math -rdynamic TARGET_LINK_LIBRARIES

Re: [CMake] Bug in TARGET_LINK_LIBRARIES

2006-02-10 Thread Filipe Sousa
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Alexander Neundorf wrote: Von: Filipe Sousa [EMAIL PROTECTED] Hi PROJECT(math) ADD_EXECUTABLE(math math.c) TARGET_LINK_LIBRARIES(math m z) Linking C executable math /usr/local/bin/cmake -E remove -f math /usr/bin/gcc -fPIC

Re: [CMake] Bug in TARGET_LINK_LIBRARIES

2006-02-10 Thread Brad King
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