mozjpeg icon indicating copy to clipboard operation
mozjpeg copied to clipboard

CMake: Use BUILD_SHARED_LIBS intead of ENABLED_SHARED, ENABLE_STATIC

Open dofuuz opened this issue 2 years ago • 0 comments

Fix #438 #403

  • Use BUILD_SHARED_LIBS intead of ENABLED_SHARED, ENABLE_STATIC
  • Builds either shared or static at a time. Not both at once.

Building shared/static one by one and using BUILD_SHARED_LIBS is more standard way to using CMake. https://cgold.readthedocs.io/en/latest/tutorials/libraries/static-shared.html

This going to fix shared/static libpng/zlib problem.

It may break existing automated builds.

dofuuz avatar Dec 15 '23 01:12 dofuuz