<div dir="ltr">I figured out what was going on by lots of experimentation.  When we link an Ada executable, we link in two other libraries, each of which is based on C/C++ code.  It appears that CMake keeps track of this and adds the implicit library dependencies you&#39;ll have because of this C and C++ code.  That is why these libraries were showing up.  I was able to reproduce this with a simple CMakeLists.txt file.  I worked around the problem by defining the implicit library variables to be empty (which will not cause us problems as the link driver (g++ for C/C++ execs, gnatmake for Ada execs) adds the right C/C++ run time libraries to the link line.<br>
<br>Tom<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Jan 3, 2014 at 2:48 PM, Alexander Neundorf <span dir="ltr">&lt;<a href="mailto:a.neundorf-work@gmx.net" target="_blank">a.neundorf-work@gmx.net</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Friday 03 January 2014, Tom Kacvinsky wrote:<br>
&gt; I sent an email yesterday about -lstdc++ showing up on my link line even<br>
&gt; though I did not request it.  And I was getting -lc and -lm multiple times.<br>
&gt;<br>
&gt; After much digging, I tracked it down to CMAKE_CXX_IMPLICIT_LINK_LIBRARIES<br>
&gt; and CMAKE_C_IMPLICIT_LINK_LIBRARIES being added to the link line, even<br>
&gt; though the language in effect is Ada (as set up by the PLPlot Ada support<br>
&gt; CMake moduels).<br>
&gt;<br>
&gt; My question is why are these added?  Is this done by default in cmake, or<br>
&gt; is this a deficiency in the Ada support modules?<br>
<br>
</div>Ada support is not part of cmake, so it&#39;s probably an issue with the Ada<br>
files.<br>
<br>
Alex<br>
<br>
--<br>
<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br>
<br>
CMake Support: <a href="http://cmake.org/cmake/help/support.html" target="_blank">http://cmake.org/cmake/help/support.html</a><br>
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" target="_blank">http://cmake.org/cmake/help/consulting.html</a><br>
CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" target="_blank">http://cmake.org/cmake/help/training.html</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</blockquote></div><br></div>