RandyGaul / cute_framework

The *cutest* framework out there for creating 2D games in C++!
https://randygaul.github.io/cute_framework/#/
Other
546 stars 31 forks source link

Make it possible to build as a dynamic library #229

Closed bullno1 closed 2 months ago

bullno1 commented 2 months ago

Only tested on Linux so far but hot reload works.

RandyGaul commented 2 months ago

Not sure about the fpic force for non-linux, I'll take a look at this at some point though. Thank you!

bullno1 commented 2 months ago

AFAIK, it is not a thing in Windows: https://stackoverflow.com/a/13309747. So the setting should just noop if it's clang.

In MSVC, there is no such flag anyway. I believe CMake is smart enough to noop.

Mac is unix so it should be similar.

Edit: uhm: https://discourse.cmake.org/t/windows-clang-platform-adds-fpic-for-shared-dlls/1784 Is windows+clang a supported combination? On windows I only use MSVC. Anything else is pain.