Hello Eric,<br><br><br>Thank you so much for the tip. I was able to successfully compile. <br>The cmake_minimum_required(VERSION 2.6.0) is what fixed it!<br><br>Also thank you for the &quot;make VERBOSE =1&quot; tip.<br>This was also very helpful. <br>
<br><br>If you are beginning to use CMake why do you have such an older policy<br>
as of CMake 2.4?<br><br>The code was originally developed with CMake 2.4. It just required some library and CMakeList.txt updates. <br><br><br>Cheers,<br><br>Frank<br><br><br><div class="gmail_quote">On Sat, Jan 30, 2010 at 3:44 AM, Eric Noulard <span dir="ltr">&lt;<a href="mailto:eric.noulard@gmail.com">eric.noulard@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">2010/1/29 Frank Bonniwell &lt;<a href="mailto:valefar4@gmail.com">valefar4@gmail.com</a>&gt;:<br>

<div class="im">&gt; Hello All,<br>
&gt;<br>
&gt; I&#39;m a student new to cmake and I ran into a stump with compiling some code.<br>
&gt;<br>
&gt; When I apply the cmake_policy as instructed in a previous compiling error,<br>
&gt; no executables are generated even when the output says otherwise.<br>
<br>
</div>Did you try<br>
<br>
make VERBOSE=1<br>
<div class="im"><br>
&gt; -- Generating done<br>
&gt; -- Build files have been written to: /home/mdtom/mpp/<br>
&gt; build<br>
&gt;<br>
&gt; Line from CMakeList.txt<br>
&gt;<br>
&gt; # avoid warning with CMake 2.6<br>
&gt; cmake_policy(VERSION 2.4)<br>
&gt; add_executable(test<br>
&gt;   main.cc<br>
&gt;   testwin.cc<br>
&gt;   testwin.h<br>
&gt;   cairovol.cc<br>
&gt;   cairovol.h<br>
&gt;   )<br>
&gt;<br>
&gt;<br>
&gt; When I also try to apply CMP0003 before the add_executable, no executables<br>
&gt; are generated.<br>
&gt;<br>
&gt;     if(COMMAND cmake_policy)<br>
&gt;       cmake_policy(SET CMP0003 NEW)<br>
&gt;     endif(COMMAND cmake_policy)<br>
&gt;<br>
&gt;<br>
&gt; Is there a better approach to using the cmake_policy I may have overlooked?<br>
<br>
</div>If you are beginning to use CMake why do you have such an older policy<br>
as of CMake 2.4?<br>
<br>
I would at least recommend:<br>
cmake_minimum_required(VERSION 2.6.0)<br>
then keep reading...<br>
<div class="im"><br>
&gt;  This warning appears<br>
&gt;   because target &quot;test&quot; links to some libraries for which the linker must<br>
&gt;   search:<br>
&gt;<br>
&gt;     gtkmm-2.4, giomm-2.4, gdkmm-2.4, atkmm-1.6, gtk-x11-2.0, pangomm-1.4<br>
&gt;     cairomm-1.0, glibmm-2.4, sigc-2.0, gdk-x11-2.0, atk-1.0, pangoft2-1.0<br>
&gt;     gdk_pixbuf-2.0, m, pangocairo-1.0, gio-2.0, cairo, pango-1.0, freetype<br>
</div>[...]<br>
<br>
Your CMakeLists.txt excerpt is too small<br>
it did not show us<br>
the find_package<br>
and target_link_libraries part which may help us to help you.<br>
<font color="#888888"><br>
--<br>
Erk<br>
Membre de l&#39;April - « promouvoir et défendre le logiciel libre » -<br>
<a href="http://www.april.org" target="_blank">http://www.april.org</a><br>
</font></blockquote></div><br>