lefticus / cpp_weekly

The official C++ Weekly Repository. Code samples and notes of future / past episodes will land here at various times. PR's will be accepted in some cases.
The Unlicense
709 stars 26 forks source link

CMake's GenerateExportHeader #405

Open lefticus opened 3 months ago

lefticus commented 3 months ago

https://cmake.org/cmake/help/latest/module/GenerateExportHeader.html

benthevining commented 1 month ago

+1 for this. It's usually only necessary if you want to support shared libraries though, if you're only concerned with building a static lib, you can get away without decorating every function/class with MYLIB_EXPORT