No subject
Tue Jun 23 12:19:35 EDT 2009
target_link_libraries() as needed.
=09
You might be able to adapt FindPkgConfig.cmake for your purposes =
(having it call llvm-config instead)?
You might also have a look at FindXMLRPC.cmake as it does similar =
parsing to what you would need.
=09
This assumes that you want CMake to work with the output of any =
llvm-config. If you don't need this level of detail you can probably =
cut corners just to get it working.
=09
=09
On Sat, Jul 18, 2009 at 1:11 AM, Carter Cheng <carter_cheng at yahoo.com> =
wrote:
=09
Hi,
=09
I am having some difficulties determining how to work with a back =
quoted arguments generator using CMake. I.e. something like this-
=09
g++ -g -c Exp.cpp `llvm-config --cppflags --ldflags --libs core jit =
native`
=09
Any advice/tips would be appreciated.
=09
Thanks in advance,
=09
Carter.
=09
=09
=09
_______________________________________________
Powered by www.kitware.com
=09
Visit other Kitware open-source projects at =
http://www.kitware.com/opensource/opensource.html
=09
Please keep messages on-topic and check the CMake FAQ at: =
http://www.cmake.org/Wiki/CMake_FAQ
=09
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake
=09
--=20
Philip Lowman
=09
------_=_NextPart_001_01CA0ED4.458F3B77
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.6000.16850" name=3DGENERATOR></HEAD>
<BODY>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D203045715-27072009><FONT =
face=3DArial=20
size=3D2>Hi Carter,</FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D203045715-27072009><FONT =
face=3DArial=20
size=3D2>Maybe my solution may help you too:</FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D203045715-27072009><FONT =
face=3DArial=20
size=3D2>Please see my latest thread/post with the =
subject "Script=20
running gcc does not come back".</FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D203045715-27072009><FONT =
face=3DArial size=3D2>I=20
had the problem how to add an option=20
"-frandom-seed=3D<checksum-of-source-file>" to the gcc=20
call.</FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D203045715-27072009><FONT =
face=3DArial=20
size=3D2>Joerg</FONT></SPAN></DIV><BR>
<BLOCKQUOTE=20
style=3D"PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px =
solid; MARGIN-RIGHT: 0px">
<DIV class=3DOutlookMessageHeader lang=3Dde dir=3Dltr align=3Dleft>
<HR tabIndex=3D-1>
<FONT face=3DTahoma size=3D2><B>Von:</B> cmake-bounces at cmake.org=20
[mailto:cmake-bounces at cmake.org] <B>Im Auftrag von </B>Philip=20
Lowman<BR><B>Gesendet:</B> Samstag, 18. Juli 2009 08:35<BR><B>An:</B> =
Carter=20
Cheng<BR><B>Cc:</B> cmake at cmake.org<BR><B>Betreff:</B> Re: [CMake] How =
to=20
handle generated arguments list in CMake<BR></FONT><BR></DIV>
<DIV></DIV>You probably want to use the execute_process() on =
"llvm-config=20
--cppflags", then "llvm-config --ldflags", etc. and store each into a =
variable=20
using a regular expression if necessary to parse the output. =
More information about the CMake
mailing list