From 14b8020ddaa7a127781aee169899d10a9079ca85 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 29 Jan 2018 18:07:44 -0500 Subject: make gd/gd2 image formats optional #428 We still enable them by default, but we'll probably flip them off in the next major release series. --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 9fe2eb4..f715b38 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,6 +11,7 @@ SET(CMAKE_MODULE_PATH "${GD_SOURCE_DIR}/cmake/modules") include(gd) +OPTION(ENABLE_GD_FORMATS "Enable GD image formats" 0) OPTION(ENABLE_PNG "Enable PNG support" 0) OPTION(ENABLE_LIQ "Enable libimagequant support" 0) OPTION(ENABLE_JPEG "Enable JPEG support" 0) @@ -144,6 +145,8 @@ else (USE_EXT_GD) FIND_PACKAGE(FontConfig) endif (ENABLE_FONTCONFIG) + SET(ENABLE_GD_FORMATS ${ENABLE_GD_FORMATS}) + if (FREETYPE_FOUND) INCLUDE_DIRECTORIES(${FREETYPE_INCLUDE_DIRS}) SET(HAVE_FT2BUILD_H 1) -- cgit v1.2.1