<!DOCTYPE html><html><head><title></title><style type="text/css">
p.MsoNormal,p.MsoNoSpacing{margin:0}</style></head><body><div><br></div><div><br></div><blockquote type="cite" id="qt"><blockquote id="qt-qt" type="cite"><blockquote type="cite" cite="mid:5ed95f43-eb25-4ac4-86fb-dd72c1a791e4@www.fastmail.com"><blockquote type="cite" id="qt-qt-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></blockquote></blockquote></blockquote><div><br></div><div>For linking objects it would be overriding CMAKE_C_LINK_EXECUTABLE:<br></div><div><br></div><div>For example from the TI-C.cmake file:<br></div><div>set(CMAKE_C_LINK_EXECUTABLE "<CMAKE_C_COMPILER> --run_linker --output_file=<TARGET> --map_file=<TARGET>.map <CMAKE_C_LINK_FLAGS> <LINK_FLAGS> <OBJECTS> <LINK_LIBRARIES>")<br></div></body></html>