diff options
Diffstat (limited to 'CMake')
| -rw-r--r-- | CMake/FLTK-Functions.cmake | 6 | ||||
| -rw-r--r-- | CMake/install-symlinks.cmake.in | 46 |
2 files changed, 32 insertions, 20 deletions
diff --git a/CMake/FLTK-Functions.cmake b/CMake/FLTK-Functions.cmake index 14e96d7cc..2c29efe73 100644 --- a/CMake/FLTK-Functions.cmake +++ b/CMake/FLTK-Functions.cmake @@ -2,7 +2,7 @@ # FLTK-Functions.cmake # 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 @@ -49,7 +49,3 @@ function (FLTK_SET_BUNDLE_ICON TARGET ICON_PATH) RESOURCE "${ICON_PATH}" ) endfunction (FLTK_SET_BUNDLE_ICON TARGET ICON_PATH) - -# -# End of file -# diff --git a/CMake/install-symlinks.cmake.in b/CMake/install-symlinks.cmake.in index fe33bc271..b338163f1 100644 --- a/CMake/install-symlinks.cmake.in +++ b/CMake/install-symlinks.cmake.in @@ -1,17 +1,33 @@ +# +# Installation script to create symlinks for the FLTK project using CMake +# +# 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 -# On unix create backward compatibility symlinks -if(NOT EXISTS $ENV{DESTDIR}@PREFIX_INCLUDE@/Fl) - EXECUTE_PROCESS(COMMAND ln -s FL Fl - WORKING_DIRECTORY $ENV{DESTDIR}@PREFIX_INCLUDE@ - ) -endif(NOT EXISTS $ENV{DESTDIR}@PREFIX_INCLUDE@/Fl) +# On UNIX create backward compatibility symlinks +if (NOT EXISTS $ENV{DESTDIR}@PREFIX_INCLUDE@/Fl) + EXECUTE_PROCESS( + COMMAND ln -s FL Fl + WORKING_DIRECTORY $ENV{DESTDIR}@PREFIX_INCLUDE@ + ) +endif (NOT EXISTS $ENV{DESTDIR}@PREFIX_INCLUDE@/Fl) -file(GLOB FLTK_HEADER_FILES $ENV{DESTDIR}@PREFIX_INCLUDE@/FL/*.H) -foreach(file ${FLTK_HEADER_FILES}) - GET_FILENAME_COMPONENT(nameWE ${file} NAME_WE) - if(NOT EXISTS $ENV{DESTDIR}@PREFIX_INCLUDE@/FL/${nameWE}.h) - EXECUTE_PROCESS(COMMAND ln -s ${nameWE}.H ${nameWE}.h - WORKING_DIRECTORY $ENV{DESTDIR}@PREFIX_INCLUDE@/FL - ) - endif(NOT EXISTS $ENV{DESTDIR}@PREFIX_INCLUDE@/FL/${nameWE}.h) -endforeach(file) +file (GLOB FLTK_HEADER_FILES $ENV{DESTDIR}@PREFIX_INCLUDE@/FL/*.H) +foreach (file ${FLTK_HEADER_FILES}) + GET_FILENAME_COMPONENT(nameWE ${file} NAME_WE) + if (NOT EXISTS $ENV{DESTDIR}@PREFIX_INCLUDE@/FL/${nameWE}.h) + EXECUTE_PROCESS( + COMMAND ln -s ${nameWE}.H ${nameWE}.h + WORKING_DIRECTORY $ENV{DESTDIR}@PREFIX_INCLUDE@/FL + ) + endif (NOT EXISTS $ENV{DESTDIR}@PREFIX_INCLUDE@/FL/${nameWE}.h) +endforeach (file) |
