Set OPTION_USE_SYSTEM_LIBPNG/JPEG off under macOS by default
This commit is contained in:
parent
7bcfea7f27
commit
8b73735d65
@ -229,7 +229,11 @@ endif(OPTION_USE_SYSTEM_ZLIB AND NOT 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 AND LIB_jpeg)
|
||||
include(FindJPEG)
|
||||
@ -253,7 +257,11 @@ endif(OPTION_USE_SYSTEM_LIBJPEG AND NOT 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 AND LIB_png)
|
||||
include(FindPNG)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user