<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
After setting the variable CMAKE_C_LINK_EXECUTABLE to my own linker
in my Platform/Generic-dcc file it was used. Formerly I set the
variable in my toolchain file and that doesn't work. If setting the
CMAKE_C_LINK_EXECUTABLE variable you need to set the complete string
as in the CMake\share\cmake-2.8\Modules\CMakeCInformation.cmake.<br>
<br>
This means I copied the line where the standard C compiler was
declared also as the linker and set the string in my
Platform/Generic-dcc variable CMAKE_C_LINK_EXECUTABLE and that
works.<br>
Now my cross linker is used, the compiled objects are passed as
parameter and my linker flags are set.<br>
<br>
Your hint with the two lines is useful in any case:<br>
<pre wrap="">SET_TARGET_PROPERTIES(foo_target PROPERTIES LINKER_LANGUAGE C)
SET_TARGET_PROPERTIES(foo_target PROPERTIES LINK_FLAGS "-abcdfg")
</pre>
Many thanks for that!<br>
<br>
On 23.09.11 14:37, Florian Reinhard wrote:
<blockquote
cite="mid:%20%3CCAKijq3U8ynDDQJaDM4jChAZ4G_=SZ6aEdKoToZxxfj8yNov-yQ@mail.gmail.com"
type="cite">
<pre wrap="">here some points that should help you find a solution (just as a hint
where or what to search)
ENABLE_LANGUAGE(ASM_OCU)
PROJECT (foo)
SET(CMAKE_EXE_LINKER_FLAGS "-abcdfg" ) <-- does work for me!
add_executable(foo_target ${FOO_SRC})
SET_TARGET_PROPERTIES(foo_target PROPERTIES LINKER_LANGUAGE C)
SET_TARGET_PROPERTIES(foo_target PROPERTIES LINK_FLAGS "-abcdfg")
</pre>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<title></title>
<br>
<div class="moz-signature">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:KievitOT-Regular;
        panose-1:2 0 5 3 4 0 0 2 0 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.Section1
        {page:Section1;}
-->
</style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="2050" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="Section1">
<hr size="2" width="100%">
<p class="MsoNormal"><b><span style="font-family:
KievitOT-Regular; color: rgb(192, 0, 0);" lang="EN-CA">martin
kupke<o:p></o:p></span></b></p>
<p class="MsoNormal"> <span style="font-family:
KievitOT-Regular; color: rgb(15, 36, 62);">can diagnostics
engineer | senior software developer<o:p></o:p></span>
</p>
<p class="MsoNormal"><b><span style="font-family:
KievitOT-Regular; color: rgb(192, 0, 0);">m</span></b><span
style="font-family: KievitOT-Regular; color: rgb(192, 0,
0);">:</span><span style="font-family: KievitOT-Regular;
color: rgb(31, 73, 125);"> </span><span
style="font-family: KievitOT-Regular; color: rgb(15, 36,
62);">+49.151.5511.3632</span><span style="font-family:
KievitOT-Regular; color: rgb(38, 38, 38);"> </span><span
style="font-family: KievitOT-Regular; color: rgb(31, 73,
125);">| </span><b><span style="font-family:
KievitOT-Regular; color: rgb(192, 0, 0);">e</span></b><span
style="font-family: KievitOT-Regular; color: rgb(192, 0,
0);">:</span><span style="font-family: KievitOT-Regular;
color: rgb(155, 37, 74);"> </span><span
style="font-family: KievitOT-Regular; color: rgb(31, 73,
125);"><a href="mailto:martin.kupke@novero.com"><span
style="color: blue;">martin.kupke@novero.com</span></a><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:
KievitOT-Regular; color: rgb(15, 36, 62);">skype:</span><span
style="font-family: KievitOT-Regular; color: rgb(31, 73,
125);">
</span><span style="font-family: KievitOT-Regular; color:
rgb(15, 36, 62);">martin.kupke_novero
</span><span style="font-family: KievitOT-Regular; color:
rgb(0, 32, 96);">| </span><span style="font-family:
KievitOT-Regular; color: rgb(15, 36, 62);">w:</span><span
style="font-family: KievitOT-Regular; color: rgb(31, 73,
125);"> <a href="http://www.novero.com"><span
style="color: blue;">www.novero.com</span></a><br>
<br>
</span>
<span style="font-family: KievitOT-Regular; color: rgb(192,
0, 0);"></span>
<img src="cid:part1.05030800.07080108@novero.com"
alt="novero GmbH"><br>
<span style="font-family: KievitOT-Regular; color: rgb(15,
36, 62);">meesmannstr.103 | 44807 Bochum | germany</span>
<span style="font-family: KievitOT-Regular; color: rgb(31,
73, 125);"><o:p></o:p></span></p>
<p class="MsoNormal"> <span style="font-family:
KievitOT-Regular; color: rgb(15, 36, 62);"><br>
novero gmbh | parsevalstr. </span> <span
style="font-family: KievitOT-Regular; color: rgb(15, 36,
62);" lang="DE">7 a | 40468 düsseldorf | germany |
amtsgericht düsseldorf | hrb 58283 |
umsatzsteueridentifikationsnummer: de 814973142 |
geschäftsführender gesellschafter: razvan olosu</span> <span
style="font-family: KievitOT-Regular; color: rgb(31, 73,
125);" lang="DE"><o:p></o:p></span>
</p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</div>
</body>
</html>