Use CMake generate_export_header.
The old *export.h headers only work on gcc because they use __attribute__((visibility)). Letting CMake generate the export headers creates macros that work on Windows/MSVC too, using dllexport/dllimport as appropriate.
parent
8cc4fc29
Please register or sign in to comment