<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">On 29.08.2019 22:38, fdk17 wrote:<br>
</div>
<blockquote type="cite"
cite="mid:5ed95f43-eb25-4ac4-86fb-dd72c1a791e4@www.fastmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title></title>
<style type="text/css">p.MsoNormal,p.MsoNoSpacing{margin:0}</style>
<div>On Thu, Aug 29, 2019, at 2:52 PM, Kyle Edwards via CMake
wrote:<br>
</div>
<blockquote type="cite" id="qt">
<div>On Thu, 2019-08-29 at 18:27 +0100, hex wrote:<br>
</div>
<div>> hello community,<br>
</div>
<div>> <br>
</div>
<div>> CMake builds a C project with gcc -o target_name. I
have a compiler<br>
</div>
<div>> very similar to GCC and I am trying configure CMake C
language for<br>
</div>
<div>> it.<br>
</div>
<div>> <br>
</div>
<div>> The compiler does not support the -o argument when
linking objects. I<br>
</div>
<div>> wonder if there is a way to remove or modify this
argument, maybe<br>
</div>
<div>> through one of the properties on targets?<br>
</div>
<div>> <br>
</div>
<div>> thank you<br>
</div>
<div><br>
</div>
<div>Your best bet would be to modify the CMake source code to
support your<br>
</div>
<div>compiler. (Upstreaming your changes would be welcome.)<br>
</div>
<div><br>
</div>
<div>As a matter of interest, what does it use instead of -o?<br>
</div>
<div><br>
</div>
<div>Kyle<br>
</div>
</blockquote>
<div><br>
</div>
<div>If you are using the Makefile generator then try:<br>
</div>
<div><a
href="https://cmake.org/cmake/help/latest/variable/CMAKE_USER_MAKE_RULES_OVERRIDE.html"
moz-do-not-send="true">https://cmake.org/cmake/help/latest/variable/CMAKE_USER_MAKE_RULES_OVERRIDE.html</a><br>
</div>
<div>You may then be able to provide the rules needed, refer to
"Modules/CMakeCInformation.cmake".<br>
</div>
<div>The way I understand it is that the rule templates are used
by the Makefile generator.<br>
</div>
<div><br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
</blockquote>
<p>The way I understand the documentation,
CMAKE_USER_MAKE_RULES_OVERRIDE applies for all generators, not
just the Makefile one. What you are apparently supposed to do is
create a file that sets all the "rule variables" as required (in
this case, CMAKE_C_COMPILE_OBJECT), and then include that file via
CMAKE_USER_MAKE_RULES_OVERRIDE. I'm not sure if these 'rule
variables' are documented anywhere - but you can look into
"<path where CMake is
installed>/share/cmake-<version>/Modules/Compiler" for
inspiration. Another good starting point would be
"<...>/share/cmake-<version>/Modules/CMakeCInformation.cmake".<br>
</p>
<p>With kind regards,<br>
Eric</p>
<div class="moz-signature">
<div style="width:480px; text-align: left; font-family: Arial,
Helvetica, sans-serif;">
<p style="color: #062d64; font-size: 14px; text-align: left;
font-family: Arial, Helvetica, sans-serif;"><b>
Dr. Eric Dönges
</b><br>
Senior Software Engineer
</p>
<p style="color: #062d64; font-size: 12px; text-align: left;
font-family: Arial, Helvetica, sans-serif;">MVTec Software
GmbH | Arnulfstr. 205 | 80634 Munich | Germany<br>
<a style="font-size: 12px; font-family: Arial, Helvetica,
sans-serif; color: #062d64;" href="mailto:doenges@mvtec.com">doenges@mvtec.com</a>
| Tel: +49 89 457 695-0 | <a style="font-size: 12px;
font-family: Arial, Helvetica, sans-serif; color: #062d64;"
href="http://www.mvtec.com">www.mvtec.com</a>
</p>
<p style="color: #062d64; font-size: 12px; text-align: left;
font-family: Arial, Helvetica, sans-serif;"><img
src="https://mvtec.com/fileadmin/Redaktion/newsletter/mail-signature/newsletter-icon.png"
valign="bottom" width="16" height="16"> <a style="font-size:
12px; font-family: Arial, Helvetica, sans-serif; color:
#062d64; font-weight: bold;"
href="http://www.mvtec.com/newsletter">Sign up</a> for our
MVTec Newsletter!</p>
<p style="margin: 0px; color: #666; font-size: 12px; text-align:
left; font-family: Arial, Helvetica, sans-serif;">Geschäftsführer:
Dr. Wolfgang Eckstein, Dr. Olaf Munkelt<br>
Amtsgericht München HRB 114695</p>
<p style="margin: 0px; color: #666; font-size: 12px; text-align:
left; font-family: Arial, Helvetica, sans-serif;"> </p>
<img
src="https://www.mvtec.com/fileadmin/Redaktion/newsletter/mail-signature/mvtec-logo-line.png"
alt="MVTec Software GmbH Logo"></div>
</div>
</body>
</html>