[CMake] (no subject)

Lucas.Pettey at engilitycorp.com Lucas.Pettey at engilitycorp.com
Thu May 21 18:00:12 EDT 2015


Hello,

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:

set_property(TARGET adh PROPERTY LINKER_LANGUAGE CXX)

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?

Thanks,

Lucas Pettey, PhD
HPCMP PETTT EQM CTA Lead
ERDC-DSRC OnSite
Vicksburg, MS
512-297-9833 Mobile (preferred)
601-634-2980 Office
lucas.pettey at engilitycorp.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20150521/492ecdc8/attachment.html>


More information about the CMake mailing list