summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorwilson chen <willson.chenwx@gmail.com>2020-04-13 15:09:51 +0800
committerGitHub <noreply@github.com>2020-04-13 15:09:51 +0800
commit1860547cf00bfff96d176909e0a9e99adbeb6677 (patch)
treee2bf1387a9a41906040046a0a8981fccd1fa489f /tests
parentc494fb788e5139c241935d0e3b8a7b429dc27679 (diff)
downloadlibgd-1860547cf00bfff96d176909e0a9e99adbeb6677.tar.gz
Fixed test case build configure error in issue #626
Diffstat (limited to 'tests')
-rw-r--r--tests/gdimagefile/CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
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)