[cmake-developers] ctest not detecting error when clang fails to link

2012-03-08 Thread Alexandru Ciobanu
Hi, We found a scenario when when ctest does not detect a build error. This occurs when clang is invoked as a linker and one of the libraries is not found: /Developer/usr/bin/clang++ -LDIR1 -LDIR2 -lib1 -lib2 -lib3 [...] -o MyApp ld: library not found for -lprofile_rt Command

Re: [cmake-developers] ctest not detecting error when clang fails to link

2012-03-08 Thread Alexandru Ciobanu
Hi Brad, I investigated this issue a bit more. I have two conclusions. [1] Clang generates clear error messages, and ctest detects such errors without problem. These errors look like this: ld: library not found for -lkaboom clang: error: linker command failed with exit code 1 (use -v to