Closed wayne-arnold-adsk closed 3 years ago
CMake has a built-in way to generate export headers:
https://cmake.org/cmake/help/latest/module/GenerateExportHeader.html
Building upon that feature seems like a good way to go. 👍 thanks Wayne, this would be good to do.
Thanks Wayne, I think we have this working in https://github.com/wdas/ptex/pull/57
Could you please try out my visibilty
branch from git://github.com/davvid/ptex.git
and let me know if that looks good to you?
Thanks for the sug!
in reviewing the current code for Mac/Linux one would normally use the same
for both cases, when defined PTEX_EXPORTS or not. else this can lead to different visibility warnings for different compile units
the use of PTEXAPI could be expanded to include both Mac and Linux builds with use of:
__attribute__ ((visibility("default")))