summaryrefslogtreecommitdiff
path: root/CMake/compatibility.cmake
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2023-11-15 21:30:12 +0100
committerAlbrecht Schlosser <albrechts.fltk@online.de>2023-11-15 21:30:12 +0100
commit6f021d483093a51e736d38e12491fbe5a70d302c (patch)
tree16c8f4a677c00e617c842dff8634f0018f619798 /CMake/compatibility.cmake
parented7c2f1464346c386825b6ef76a507f481604024 (diff)
CMake: Raise cmake_minimum_required from 3.12 to 3.15
Remove code that checks CMake versions lower than 3.15
Diffstat (limited to 'CMake/compatibility.cmake')
-rw-r--r--CMake/compatibility.cmake20
1 files changed, 8 insertions, 12 deletions
diff --git a/CMake/compatibility.cmake b/CMake/compatibility.cmake
index 338e9b9e3..233b4001f 100644
--- a/CMake/compatibility.cmake
+++ b/CMake/compatibility.cmake
@@ -1,7 +1,7 @@
#
# CMake compatibility functions and macros for the Fast Light Tool Kit (FLTK)
#
-# Copyright 1998-2021 by Bill Spitzak and others.
+# Copyright 1998-2023 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
@@ -16,7 +16,7 @@
################################################################################
#
-# The functions (and macros) in this file are defined to simplify CMake
+# The functions and maybe macros in this file are defined to simplify CMake
# code that uses features not available in all supported CMake versions.
# Functions should be preferred (rather than macros) because functions
# have their own variable scope.
@@ -33,6 +33,12 @@
#
################################################################################
+
+# Right now we don't need compatibility functions
+# This file is currently "empty" but left for documentation purposes
+# An example function documentation follows...
+
+
################################################################################
#
# function fl_target_link_directories - add link directories to target
@@ -62,13 +68,3 @@
# can be an empty list.
#
################################################################################
-
-function (fl_target_link_directories TARGET SCOPE DIRS)
-
- if (CMAKE_VERSION VERSION_LESS "3.13")
- link_directories (${DIRS})
- else ()
- target_link_directories (${TARGET} ${SCOPE} ${DIRS})
- endif ()
-
-endfunction () # fl_target_link_directories()