16
Feature requests / Re: (CMake) Make BUILD_SHARED_LIBS=OFF by default
« on: April 14, 2021, 02:57:47 pm »Quote
This is not a CMake's default. BUILD_SHARED_LIBS should be manually defined and set to ON so that CMake builds a shared library instead of static one.My bad, I didn't check. I always create shared libs, whether it is at home or at work. Adding SHARED to add_library has probably become automatic for me, so that I don't notice it anymore.
I really wonder why STATIC is the default on CMake.
I checked a few other projects, and about half were defining BUILD_SHARED_LIBS to ON by default. So I would say it really depends on what's the most suitable default for each project. And shared libs is the recommended default for SFML, so I wouldn't change anything.
What's wrong about having to turn this flag off?