summaryrefslogtreecommitdiff
path: root/zlib
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2021-04-30 19:47:47 +0200
committerAlbrecht Schlosser <albrechts.fltk@online.de>2021-04-30 19:47:47 +0200
commita484541d4b6203d538f1a65db5a95e98f5bde920 (patch)
treee2b33bd7f0da7e60d60cfd7fa5beeb55f40e3f50 /zlib
parent2555e3b37e6218378e7becbb2b62ab6e7f1c1cd1 (diff)
CMake: improve detection and configuration of image libs
Also: fix old (pre 3.13) link_directories() usage
Diffstat (limited to 'zlib')
-rw-r--r--zlib/CMakeLists.txt18
1 files changed, 18 insertions, 0 deletions
diff --git a/zlib/CMakeLists.txt b/zlib/CMakeLists.txt
index 33d6f5809..1dc30427f 100644
--- a/zlib/CMakeLists.txt
+++ b/zlib/CMakeLists.txt
@@ -1,5 +1,21 @@
+#
+# ZLIB library CMake configuration for the Fast Light Toolkit (FLTK).
+#
+# Copyright 1998-2021 by Bill Spitzak and others.
+#
+# This library is free software. Distribution and use rights are outlined in
+# the file "COPYING" which should have been included with this file. If this
+# file is missing or damaged, see the license at:
+#
+# https://www.fltk.org/COPYING.php
+#
+# Please see the following page on how to report bugs and issues:
+#
+# https://www.fltk.org/bugs.php
+#
# source files for zlib
+
set (ZLIB_SRCS
adler32.c
compress.c
@@ -21,6 +37,7 @@ set (ZLIB_SRCS
#######################################################################
# Suppress some Visual Studio compiler warnings
+
set (msvc_warnings /wd4267 /wd4996)
#######################################################################
@@ -38,6 +55,7 @@ endif (MSVC)
#######################################################################
if (OPTION_BUILD_SHARED_LIBS)
+
FL_ADD_LIBRARY (fltk_z SHARED "${ZLIB_SRCS}")
if (MSVC)