From 00bbb69cc3fd7223e9fc7f01dd3d87c2956de93b Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 23 Feb 2017 17:31:41 -0500 Subject: tests: add more checks for libpng (and other deps) This fixes #382. --- tests/gdimagefile/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/gdimagefile/CMakeLists.txt') diff --git a/tests/gdimagefile/CMakeLists.txt b/tests/gdimagefile/CMakeLists.txt index 55ae374..ba48d64 100644 --- a/tests/gdimagefile/CMakeLists.txt +++ b/tests/gdimagefile/CMakeLists.txt @@ -1,5 +1,9 @@ +IF(TIFF_FOUND) +if(WEBP_FOUND) LIST(APPEND TESTS_FILES gdnametest ) +ENDIF(WEBP_FOUND) +ENDIF(TIFF_FOUND) ADD_GD_TESTS() -- cgit v1.2.1 From 1860547cf00bfff96d176909e0a9e99adbeb6677 Mon Sep 17 00:00:00 2001 From: wilson chen Date: Mon, 13 Apr 2020 15:09:51 +0800 Subject: Fixed test case build configure error in issue #626 --- tests/gdimagefile/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests/gdimagefile/CMakeLists.txt') diff --git a/tests/gdimagefile/CMakeLists.txt b/tests/gdimagefile/CMakeLists.txt index ba48d64..8676264 100644 --- a/tests/gdimagefile/CMakeLists.txt +++ b/tests/gdimagefile/CMakeLists.txt @@ -1,8 +1,10 @@ IF(TIFF_FOUND) -if(WEBP_FOUND) +IF(WEBP_FOUND) +IF(ENABLE_GD_FORMATS) LIST(APPEND TESTS_FILES gdnametest ) +ENDIF(ENABLE_GD_FORMATS) ENDIF(WEBP_FOUND) ENDIF(TIFF_FOUND) -- cgit v1.2.1