From 4d1fd274fcdb28df609610fc0b0246dbab19789d Mon Sep 17 00:00:00 2001 From: Steven Benton Date: Wed, 29 Jul 2026 15:24:04 -0400 Subject: [PATCH 1/2] move include outside of conditional It is used outside, and other checks fail then this condition is false --- cmake/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt index a88d8f37..103dfb4b 100644 --- a/cmake/CMakeLists.txt +++ b/cmake/CMakeLists.txt @@ -98,8 +98,9 @@ find_program(UNZIP unzip) find_program(XZ xz) find_program(ZIP zip) +include(CheckIncludeFile) + if(BZIP2_FOUND) - include(CheckIncludeFile) set(CMAKE_REQUIRED_INCLUDES ${BZIP2_INCLUDE_DIRS}) check_include_file(bzlib.h HAVE_BZLIB_H) unset(CMAKE_REQUIRED_INCLUDES) From c2991bb952f0c8a64b760312df77bd6f5ea95ea1 Mon Sep 17 00:00:00 2001 From: Steven Benton Date: Wed, 29 Jul 2026 15:34:34 -0400 Subject: [PATCH 2/2] remove subsequent global include --- cmake/CMakeLists.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt index 103dfb4b..f545d581 100644 --- a/cmake/CMakeLists.txt +++ b/cmake/CMakeLists.txt @@ -183,7 +183,6 @@ endif() set(DEFINE_GD_GETDATA_INT_VERSION "#define GD_GETDATA_INT_VERSION ${GETDATA_INT_VERSION}") # Platform-independent configuration checks -include(CheckIncludeFile) include(CheckSymbolExists) include(CheckTypeSize) include(CheckFunctionExists)