diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2021-07-26 17:14:29 +0200 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2021-07-26 17:40:26 +0200 |
| commit | 410a01c6db6363cb03bacf73800a60bb7a6bdafb (patch) | |
| tree | a03dd08eeebd311d98cf502953306e45aeebb2b2 /CMakeLists.txt | |
| parent | ded0253bb759189fe74a46b7ab23461b28e9bd3a (diff) | |
Add CMake compatibility functions and macros
CMake/compatibility.cmake: define functions and macros to be used
if a particular CMake functionality requires a higher CMake version
than FLTK's minimum CMake version, see 'cmake_minimum_required(...)'
in the root CMakeLists.txt.
Note: target_link_directories() is available since CMake 3.13
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 58e75be31..577e0656b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,8 +1,8 @@ # # Main CMakeLists.txt to build the FLTK project using CMake (www.cmake.org) -# Written by Michael Surette +# Originally written by Michael Surette # -# Copyright 1998-2020 by Bill Spitzak and others. +# 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 @@ -50,18 +50,20 @@ set (OpenGL_GL_PREFERENCE LEGACY) project (FLTK VERSION 1.4.0) ####################################################################### -# include macro definitions of generally used macros +# include macro and function definitions for general usage ####################################################################### include (CMake/fl_debug_var.cmake) include (CMake/fl_add_library.cmake) +include (CMake/compatibility.cmake) -if (false) +if (0) fl_debug_var (FLTK_VERSION_MAJOR) fl_debug_var (FLTK_VERSION_MINOR) fl_debug_var (FLTK_VERSION_PATCH) fl_debug_var (FLTK_VERSION) -endif (false) + fl_debug_var (CMAKE_VERSION) +endif () ####################################################################### # basic setup |
