<div dir="ltr">Hello,<div><br></div><div>the documentation page <a href="https://cmake.org/cmake/help/v3.11/module/GenerateExportHeader.html">https://cmake.org/cmake/help/v3.11/module/GenerateExportHeader.html</a> has the mention : </div><div><div><div class="gmail_signature"><div dir="ltr"><br>> This function is deprecated. Set the target properties CXX_VISIBILITY_PRESET and VISIBILITY_INLINES_HIDDEN instead.<br><br>Why is that so ? I don't know any library that would export either all or none of its symbols ; functions & types of the public API must always be chosen manually by the author of the library anyways. The only use of CXX_VISIBILITY_PRESET is to set the visibility to hidden by default, so that code can then use the export macros defined by the generate_export _ header code to make specific symbols visible.</div><div dir="ltr"><br></div><div dir="ltr">Best,</div><div dir="ltr">Jean-Michaël</div><div dir="ltr"><br><div><font face="arial, helvetica, sans-serif" size="2" color="#134f5c">-------</font></div><font face="arial, helvetica, sans-serif" size="2" color="#134f5c">Jean-Michaël Celerier</font><div><font face="arial, helvetica, sans-serif" size="2" color="#134f5c"><a href="http://www.jcelerier.name" target="_blank">http://www.jcelerier.name</a></font></div></div></div></div>
</div></div>