<br><br><div class="gmail_quote">2009/3/23 Andreas Pakulat <span dir="ltr"><<a href="mailto:apaku@gmx.de">apaku@gmx.de</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On 23.03.09 16:53:15, Stephen Collyer wrote:<br>
> 2009/3/23 Stephen Collyer <<a href="mailto:scollyer@netspinner.co.uk">scollyer@netspinner.co.uk</a>><br>
<br>
> However, I'm not entirely happy as:<br>
><br>
> a) I've hardcoded the relative path ../plugins/sqldrivers in the<br>
> SQL_LIB_DIRS<br>
<br>
</div>Thats ok, anybody who doesn't have this simply has a broken Qt install,<br>
Linux distro's usually provide some directory under which they symlink a<br>
proper directory hierarchy (and if the distro doesn't it simply broken).<br>
</blockquote><div><br>I've checked the Win32 build and the dir. heirarchy is the same too, so I think this should be OK in Win32-land too. <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
You could of course also use the (not properly documented) QT_PLUGINS_DIR<br>
variable.</blockquote><div><br>Right. I'll take a look at that. <br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im"><br>
> b) I've got an explicity reference to /usr/lib as well<br>
><br>
> Can anyone suggest how I can make this a bit more platform independent ?<br>
<br>
</div>Use find_library for your mysql library, not sure how to force it to search<br>
for the static version though (except removing the shared lib).</blockquote><div><br>Of course. That's obvious. Not having touched cmake for about 5 months, I've forgotten it all :-(<br><br>Re: the finding the static version: I guess I can add my own FindMySQL.cmake and make it sufficiently clever, if I want.<br>
<br>Steve Collyer <br></div></div>