diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2020-01-18 16:04:58 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2020-01-18 16:05:29 +0100 |
| commit | ed0c443253bf33152f8a54a0d60d3a9bf6788ae8 (patch) | |
| tree | 06f9df93bb2eff3208d49df2e19054951495d2cf /CMake | |
| parent | 2a9cdbf252665b16b54ef68ca396d9fc334278be (diff) | |
Set OPTION_USE_SYSTEM_LIBPNG/JPEG off under macOS by default
Diffstat (limited to 'CMake')
| -rw-r--r-- | CMake/options.cmake | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/CMake/options.cmake b/CMake/options.cmake index 1fa80c672..1563540cd 100644 --- a/CMake/options.cmake +++ b/CMake/options.cmake @@ -338,7 +338,11 @@ endif (ZLIB_FOUND) set (HAVE_LIBZ 1) ####################################################################### -option (OPTION_USE_SYSTEM_LIBJPEG "use system libjpeg" ON) +if (APPLE) + option (OPTION_USE_SYSTEM_LIBJPEG "use system libjpeg" OFF) +else () + option (OPTION_USE_SYSTEM_LIBJPEG "use system libjpeg" ON) +endif (APPLE) if (OPTION_USE_SYSTEM_LIBJPEG) include (FindJPEG) @@ -362,7 +366,11 @@ endif (JPEG_FOUND) set (HAVE_LIBJPEG 1) ####################################################################### -option (OPTION_USE_SYSTEM_LIBPNG "use system libpng" ON) +if (APPLE) + option (OPTION_USE_SYSTEM_LIBPNG "use system libpng" OFF) +else () + option (OPTION_USE_SYSTEM_LIBPNG "use system libpng" ON) +endif (APPLE) if (OPTION_USE_SYSTEM_LIBPNG) include (FindPNG) |
