<div dir="ltr"><div>Hi,</div><div><br></div><div>When using CFLAGS=-Werror</div><div>$ check_library_exists(m sqrt "" HAVE_LIBM)</div><div>fails to give the correct result.</div><div><br></div><div>A very similar issue has been reported before for CHECK_FUNCTION_EXISTS <span style="color:rgb(0,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:13.3333330154419px;background-color:rgb(216,216,216)"><br></span><a href="http://www.cmake.org/Bug/view.php?id=8246">http://www.cmake.org/Bug/view.php?id=8246</a></div><div><br></div><div>There the recommendation was to use CHECK_SYMBOL_EXISTS instead.</div><div><br></div><div>My questions:</div><div>1) Is there an replacement for check_library_exists which gives the correct results for built-ins even with -Werror?</div><div>2) Should check_library_exists correctly work in this case and should I open a bug for it?</div><div><br></div><div>Roland<br clear="all"><div><br></div>-- <br><div class="gmail_signature">ORNL/UT Center for Molecular Biophysics <a href="http://cmb.ornl.gov" target="_blank">cmb.ornl.gov</a><br>865-241-1537, ORNL PO BOX 2008 MS6309</div>
</div></div>