On Fri, Jan 21, 2011 at 5:15 PM, Óscar Fuentes <span dir="ltr"><<a href="mailto:ofv@wanadoo.es">ofv@wanadoo.es</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">


I guess you meant FFI_LIBRARY_DIR<br></blockquote><div>Right, fixed. <br><br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
This is not good style. Using full paths for adding libraries to the<br>
link command should be avoided, otherwise the resulting command would be<br>
very hard to read. Please use the something like the code that I sent<br>
you on our private discussion.<br></blockquote><div>The problem is that find_library sets its output variable to something like "/usr/local/lib/libffi.so". I'm not sure how to get "/usr/local/lib" part from it.<br>

<br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
You need to declare FFI_INCLUDE_DIR and FFI_LIBRARY_DIR as user-settable<br>
variables:<br>
<br>
set(FFI_LIBRARY_DIR "" CACHE PATH "<description>")<br>
<br>
You need to document LLVM_ENABLE_FFI on docs/CMake.html too. Mention<br>
FFI_LIBRARY_DIR and FFI_INCLUDE_DIR there.<br>
</blockquote></div>Will do.<br>