It's something more than just this simple example... I've tried it with CMake 2.4.5, 2.4.7 and today's CVS CMake and it does not happen on my machine. (The Debug C always properly links to Ad only, not also to A...)
<br><br>I am using VS 2005 standard edition.<br><br>The problem was occurring on the ParaView3 dashboards (until I masked it out by mucking with CXX_FLAGS last Friday) on morva and minastirith dashboards. Here's an example:
<a href="http://www.paraview.org/ParaView3/Testing/Sites/morva.kitware/Win32-vs8/20071207-0100-Nightly/BuildWarning.html">http://www.paraview.org/ParaView3/Testing/Sites/morva.kitware/Win32-vs8/20071207-0100-Nightly/BuildWarning.html
</a><br><br>morva is using CMake 2.4.5 and VS8 Professional edition, minastirith is using CMake 2.4.7 and VS8 Standard edition.<br><br>Any other clues about what additional steps / settings might be required to trigger this error condition?
<br><br><br><div><span class="gmail_quote">On 12/10/07, <b class="gmail_sendername"><a href="mailto:clinton@elemtech.com">clinton@elemtech.com</a></b> <<a href="mailto:clinton@elemtech.com">clinton@elemtech.com</a>> wrote:
</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>Can this be fixed for 2.4.8? It looks like it was already fixed for 2.6, but<br>
I couldn't find a bug report for it.<br><br>=================================================<br>ADD_LIBRARY(A a.c)<br>ADD_LIBRARY(Ad a.c)<br><br>ADD_LIBRARY(B b.c)<br>TARGET_LINK_LIBRARIES(B debug Ad optimized A)<br>
# if building shared libs, cmake correctly links B with -lAd OR -lA<br><br>ADD_EXECUTABLE(C c.c)<br>TARGET_LINK_LIBRARIES(C B)<br># cmake incorrectly links C with -lB -lAd -lA if build type is Debug<br>===================================================
<br><br>Clint<br><br><br>On Wednesday 05 December 2007 3:13:39 pm Bill Hoffman wrote:<br>> I have a beta release for 2.4.8 ready for cmake. This will be the last<br>> release of the 2.4.X branch. The next release will be
2.6.0. So,<br>> please make sure you test it if you are interested in a 2.4.8. Send any<br>> issues to me or the cmake list. Thanks.<br>><br>> The files can be found here:<br>><br>> <a href="http://www.cmake.org/files/v2.4/*RC-4*">
http://www.cmake.org/files/v2.4/*RC-4*</a><br>><br>><br>> The changes from 2.4.7 are as follows:<br>><br>> Changes in CMake 2.4.8 RC 4<br>> * fix for cpack and messing up PATH with NSIS<br>> Changes in CMake
2.4.8 RC 3<br>> * fix for bug 5363: GET_TARGET_PROPERTY(... DEBUG_LOCATION)<br>> returns value containing $(OutDir)<br>> * Better error from ctest if nightly time not set<br>> * Fix for exception handling flags in VS 2003 and up
<br>> * Avoid relinking exclude-from-all directory targets before install<br>> Changes in CMake 2.4.8 RC 2<br>> * fix for bug 5590 relative paths in windows not working across drives<br>> * fix warning/error with TAR_VERBOSE flag
<br>> Changes in CMake 2.4.8 RC 1<br>> * Fix for kde4-config location<br>> * Fix for self extracting .sh files on solaris<br>> * Remove KDE3_ENABLE_FINAL (did not work)<br>> * KDE3 fix for 64 bit location of plugins
<br>> * mark PYTHON_EXECUTABLE as advanced<br>> * Fix for version numbers on NetBSD<br>> * Add more search directories (install prefix and cmake location)<br>> * include WindowsPaths in Windows.cmake not just
Windows-cl.cmake<br>> * documentation fix for file, find_package, try_run<br>> * add IS_ABSOLUTE to if<br>> * INSTALL() everything which doesn't have a COMPONENT set, is assigned<br>> to the COMPONENT "Unspecified"
<br>> * make #cmakedefine output match autoconf when undefined<br>> * document cmake remove -f<br>> * document order of -D and -P<br>> * add support for DragonFly and GNU hurd<br>> * fix for fortran depends doing too many scans
<br>> _______________________________________________<br>> CMake mailing list<br>> <a href="mailto:CMake@cmake.org">CMake@cmake.org</a><br>> <a href="http://www.cmake.org/mailman/listinfo/cmake">http://www.cmake.org/mailman/listinfo/cmake
</a><br><br><br>_______________________________________________<br>CMake mailing list<br><a href="mailto:CMake@cmake.org">CMake@cmake.org</a><br><a href="http://www.cmake.org/mailman/listinfo/cmake">http://www.cmake.org/mailman/listinfo/cmake
</a><br></blockquote></div><br>