<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le jeu. 24 oct. 2019 à 22:32, Turner, Adrian Keith via CMake <<a href="mailto:cmake@cmake.org">cmake@cmake.org</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">




<div dir="ltr">
<div id="gmail-m_2418206833367978389divtagdefaultwrapper" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif" dir="ltr">
<p>Hi CMake Mailing List,</p>
<p><br>
</p>
<p>I am using the <span>CHECK_CXX_COMPILER_FLAG directive in a CMake file to detect whether the compiler uses the "<span>-fsanitize=address</span>" compiler flag. I'm using the g++ <span>7.3.0 compiler which supports this flag but the <span style="font-family:Calibri,Helvetica,sans-serif,Helvetica,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols;font-size:16px">CHECK_CXX_COMPILER_FLAG
 directive incorrectly determines that this flag is not supported.</span></span></span></p></div></div></blockquote><div><br></div><div>You get appropriate answers to your initial question.</div><div><br></div><div>I'll add an alternative to your hand-crafted way to get sanitizers working.</div><div><br></div><div>I'm using: <a href="https://github.com/arsenm/sanitizers-cmake">https://github.com/arsenm/sanitizers-cmake</a> </div><div>and I find it easy to use and convenient when compiling with either clang or gcc.<br></div><div><br></div></div><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Eric<br></div></div></div></div></div></div>