summaryrefslogtreecommitdiff
path: root/CMake
diff options
context:
space:
mode:
Diffstat (limited to 'CMake')
-rw-r--r--CMake/FLTKConfig.cmake.in7
-rw-r--r--CMake/UseFLTK.cmake.in15
-rw-r--r--CMake/export.cmake7
-rw-r--r--CMake/install.cmake13
4 files changed, 2 insertions, 40 deletions
diff --git a/CMake/FLTKConfig.cmake.in b/CMake/FLTKConfig.cmake.in
index fb722c124..e647e6453 100644
--- a/CMake/FLTKConfig.cmake.in
+++ b/CMake/FLTKConfig.cmake.in
@@ -2,7 +2,7 @@
# FLTKConfig.cmake - FLTK CMake configuration file for external projects.
#
# This file is generated by CMake and used to load FLTK's settings for
-# an external project.
+# an external project, i.e. a project using FLTK.
#
# It defines the following variables:
#
@@ -17,10 +17,6 @@
#
# FLTK_INCLUDE_DIR - FLTK include directories (same as FLTK_INCLUDE_DIRS)
#
-# FLTK_USE_FILE - previously used to set things up to use FLTK
-# - deprecated since FLTK 1.3.4
-# - will be removed in FLTK 1.4.0 or later
-#
# Important note: FLTK's CMake build files are not yet complete and may be
# changed in future versions. This includes the list of defined variables
# above that may be changed if necessary.
@@ -31,7 +27,6 @@ set (FLTK_VERSION @FLTK_VERSION@)
include (${CMAKE_CURRENT_LIST_DIR}/FLTK-Targets.cmake)
set (FLTK_INCLUDE_DIRS "@INCLUDE_DIRS@")
-set (FLTK_USE_FILE ${CMAKE_CURRENT_LIST_DIR}/UseFLTK.cmake)
# for compatibility with CMake's FindFLTK.cmake
diff --git a/CMake/UseFLTK.cmake.in b/CMake/UseFLTK.cmake.in
deleted file mode 100644
index f9e9e0b6e..000000000
--- a/CMake/UseFLTK.cmake.in
+++ /dev/null
@@ -1,15 +0,0 @@
-#
-# UseFLTK.CMake - FLTK CMake environment configuration file for external projects.
-#
-# This file is deprecated and will be removed in FLTK 1.4.0 or later
-#
-# automatically generated - do not edit
-#
-
-include_directories("@FLTK_INCLUDE_DIRS@")
-
-message(AUTHOR_WARNING
-" * Warning: UseFLTK.cmake is deprecated and will be removed in FLTK 1.4.0
- * or later. Please use 'include_directories(\${FLTK_INCLUDE_DIRS})' or
- * 'target_include_directories(<target> PUBLIC|PRIVATE \${FLTK_INCLUDE_DIRS})'
- * instead of 'include(\${FLTK_USE_FILE})'.")
diff --git a/CMake/export.cmake b/CMake/export.cmake
index 828d4370d..63502a4d9 100644
--- a/CMake/export.cmake
+++ b/CMake/export.cmake
@@ -64,13 +64,6 @@ configure_file(
@ONLY
)
-# generate UseFLTK.cmake for build directory use
-configure_file(
- ${CMAKE_CURRENT_SOURCE_DIR}/CMake/UseFLTK.cmake.in
- ${CMAKE_CURRENT_BINARY_DIR}/UseFLTK.cmake
- @ONLY
-)
-
# generate fltk-config for build directory use
set (prefix ${CMAKE_CURRENT_BINARY_DIR})
set (exec_prefix "\${prefix}")
diff --git a/CMake/install.cmake b/CMake/install.cmake
index 729cc5b65..ea36ab301 100644
--- a/CMake/install.cmake
+++ b/CMake/install.cmake
@@ -77,19 +77,8 @@ install (FILES
DESTINATION ${FLTK_CONFIG_PATH}
)
-configure_file(
- ${CMAKE_CURRENT_SOURCE_DIR}/CMake/UseFLTK.cmake.in
- ${CMAKE_CURRENT_BINARY_DIR}/etc/UseFLTK.cmake
- @ONLY
-)
-
-# Deprecated: install UseFLTK.cmake with deprecation warnings only
-install (FILES
- ${CMAKE_CURRENT_BINARY_DIR}/etc/UseFLTK.cmake
- DESTINATION ${FLTK_CONFIG_PATH}
-)
+# Generate fltk-config
-# generate fltk-config
set (prefix ${CMAKE_INSTALL_PREFIX})
set (exec_prefix "\${prefix}")
set (includedir "\${prefix}/${CMAKE_INSTALL_INCLUDEDIR}")