summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Joye <pierre.php@gmail.com>2021-08-23 21:18:29 +0700
committerPierre Joye <pierre.php@gmail.com>2021-08-23 21:18:29 +0700
commit1a04cda56a322f05434a4e2a9150e9542d8cda30 (patch)
treeb6748726e6e29a117f269388e50867e800e83ce6
parent8864a3086f26f0d8befb4c7aaa9ed32268283b31 (diff)
downloadlibgd-1a04cda56a322f05434a4e2a9150e9542d8cda30.tar.gz
remove annotate from windows builds
-rw-r--r--src/CMakeLists.txt7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index f60dce5..63bfc7e 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -161,7 +161,9 @@ if (PNG_FOUND)
endif()
if (FREETYPE_FOUND AND JPEG_FOUND)
- set(GD_PROGRAMS ${GD_PROGRAMS} annotate)
+ if (NOT WIN32)
+ set(GD_PROGRAMS ${GD_PROGRAMS} annotate)
+ endif (NOT WIN32)
endif()
if (ZLIB_FOUND)
@@ -171,8 +173,9 @@ endif()
foreach(program ${GD_PROGRAMS})
add_executable(${program} ${program}.c)
if (WIN32)
- list(REMOVE_ITEM program webpng.c)
+ list(REMOVE_ITEM program webpng.c annotate.c)
list(REMOVE_ITEM GD_PROGRAMS webpng)
+ list(REMOVE_ITEM GD_PROGRAMS annotate)
endif (WIN32)
if (BUILD_SHARED_LIBS)