<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hello,<br>
<br>
I am trying to compile a code written in C, but using an external library that contains C++ functions. I am on a Cray system and everything works if I manually link with the cray CC wrapper. When I change the linker language with this command:<br>
<br>
set_property(TARGET adh PROPERTY LINKER_LANGUAGE CXX)<br>
<br>
CMake is using the CC wrapper, but adding -lstdc++ to the link line. This causes an error. Can anyone tell me how to not get this added library?
<br>
<br>
Thanks,<br>
<div><br>
<div style="font-family:Tahoma; font-size:13px">Lucas Pettey, PhD <br>
<div><font size="2"><span style="background-color:white">HPCMP</span></font><font face="Calibri,sans-serif" color="#005B99" size="2"><span style="font-size:15px"> </span></font>PETTT EQM CTA Lead</div>
<div>ERDC-DSRC OnSite </div>
<div>Vicksburg, MS</div>
<div>512-297-9833 Mobile (preferred)</div>
<div>601-634-2980 Office</div>
<div>lucas.pettey@engilitycorp.com</div>
</div>
</div>
</div>
</body>
</html>