<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Verdana; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div style="font-family: 'Sans Serif'; font-size: 10pt; font-weight: 400; font-style: normal; "><div style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; text-indent: 0px; white-space: pre-wrap; "><br></div>Should not the flag be passed to the linker? So in this case the linker flags are read from the c++ compiler flags?<br><div style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; text-indent: 0px; white-space: pre-wrap; "><br></div></div></span></blockquote><br></div><div>I tried adding&nbsp;</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>add_definitions( ${CMAKE_Fortran_FLAGS} )</div><div>But the g++ linker complained about an unrecognized option (the -fconvert=big-endian option).</div><div><br></div><div>When linking, I pull in the gfortran library,</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>target_link_libraries( readx gfortran )</div><div><br></div><div>When creating the fortran object files the appropriate flags are passed, but the g++ compiler has no notion of endian-ness...</div><div><br></div><div>Any other ideas?</div><div><br></div></body></html>