<br><br>
<div><span class="gmail_quote">On 3/13/07, <b class="gmail_sendername">Werner Smekal</b> &lt;<a href="mailto:smekal@iap.tuwien.ac.at">smekal@iap.tuwien.ac.at</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi Pierre,</blockquote>
<div>&nbsp;</div>
<div>Hi Werner,</div><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">okay, I looked at FindSDL.cmake more carefully. First I think you should<br>make sure that SDL is actually found. You should have something like
<br>this in you cmakeLists.txt:<br><br>find_package(SDL)<br>if( NOT SDL_FOUND )<br>&nbsp;&nbsp; message( &quot;Warning: SDL not found&quot; )<br>endif( NOT SDL_FOUND )<br><br>or since you need it anyway for your package:<br><br>find_package(SDL REQUIRED)
</blockquote>
<div>&nbsp;</div>
<div>Ok, I already had that.</div><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">than cmake stops if SDL isn&#39;t found (actually not, since FindSDL.cmake<br>misses this feature :).</blockquote>

<div>&nbsp;</div>
<div>yes...</div><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Anyway, from what I see, you set the path SDLMAIN_LIBRARY, but libsdl.a<br>is not found, since you don&#39;t tell it where to find it. it is much
<br>better to use environment variables here, e.g.<br><br>set CMAKE_LIBRARY_PATH=c:\sdl\lib<br>set CMAKE_INCLUDE_PATH=c:\sdl\include<br>cmake ..<br><br>or for msys</blockquote>
<div>&nbsp;</div>
<div>That works, but I think that FindSDL should ask for everything needed.</div>
<div>Eric, could you correct FindSDL accordingly?</div>
<div>&nbsp;</div>
<div>Thanks to both of you to help me find the problem,</div>
<div>&nbsp;</div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">-- <br>Pierre-André Galmes<br>Free Software consultant<br>StarXpert - <a href="http://www.starxpert.fr">www.starxpert.fr
</a><br>6, rue Eugène Varlin - 75010 Paris </blockquote></div>