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 /fluid | |
| 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 'fluid')
| -rw-r--r-- | fluid/CMakeLists.txt | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/fluid/CMakeLists.txt b/fluid/CMakeLists.txt index 2377d721f..dce95ca3a 100644 --- a/fluid/CMakeLists.txt +++ b/fluid/CMakeLists.txt @@ -71,11 +71,7 @@ endif (APPLE AND (NOT OPTION_APPLE_X11) AND (NOT OPTION_APPLE_SDL)) target_link_libraries (fluid fltk fltk_images fltk_forms) if (FLTK_HAVE_CAIRO) - if (CMAKE_VERSION VERSION_LESS "3.13") - link_directories (${PKG_CAIRO_LIBRARY_DIRS}) - else() - target_link_directories (fluid PRIVATE ${PKG_CAIRO_LIBRARY_DIRS}) - endif() + fl_target_link_directories (fluid PRIVATE "${PKG_CAIRO_LIBRARY_DIRS}") endif (FLTK_HAVE_CAIRO) if (USE_GDIPLUS) # can only be true on Windows |
