gamecreature / QtAwesome

QtAwesome - Font Awesome for Qt Applications
Other
773 stars 147 forks source link

Force static library #51

Closed MartinDelille closed 1 year ago

MartinDelille commented 1 year ago

I'm not sure this changed should be accepted but I needed this patch to make sure the library compiles statically. Indeed, I have BUILD_SHARED_LIBS set to ON globally on my project so it is propagated to QtAwesome which lead to a compile error.

I'm sure there is a cleaner way to handle this situation.

MartinDelille commented 1 year ago

I found a really simple way:

SET(BUILD_SHARED_LIBS OFF)
add_subdirectory(QtAwesome)