summaryrefslogtreecommitdiff
path: root/CMake/UseFLTK.cmake.in
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2020-06-13 13:51:35 +0200
committerAlbrecht Schlosser <albrechts.fltk@online.de>2020-06-13 13:51:35 +0200
commit6279ab0586d86eaac65839c73eb5b67e84d1ece3 (patch)
tree523fbac9a9054c5c3ff74f04c195d3371187df9f /CMake/UseFLTK.cmake.in
parent1078b8fe4384612fd329437258e523bafe2383a3 (diff)
CMake: Deprecate FLTK_USE_FILE (UseFLTK.cmake)
Cherry-pick the essential changes from FLTK 1.3 since this change had not been ported to 1.4 yet. To do: my current plan is to consolidate 1.3 and 1.4 CMake files as far as possible (with the exceptions of source files, obviously) and to redesign / refactor CMake files later in this process or maybe only for 1.4 if it turns out to be too much to backport.
Diffstat (limited to 'CMake/UseFLTK.cmake.in')
-rw-r--r--CMake/UseFLTK.cmake.in28
1 files changed, 11 insertions, 17 deletions
diff --git a/CMake/UseFLTK.cmake.in b/CMake/UseFLTK.cmake.in
index ed26f8815..20ecb85d6 100644
--- a/CMake/UseFLTK.cmake.in
+++ b/CMake/UseFLTK.cmake.in
@@ -1,25 +1,19 @@
#
# UseFLTK.CMake - FLTK CMake environment configuration file for external projects.
#
-# This file is generated by CMake and used to set FLTK's environment for an external project.
+# This file is deprecated and will be removed in FLTK 1.4.0 or later
#
# automatically generated - do not edit
+#
-include_directories("@INCLUDE_DIRS@")
+include_directories("@FLTK_INCLUDE_DIRS@")
-if(CMAKE_CROSSCOMPILING)
- find_file(FLUID_PATH
- NAMES fluid fluid.exe
- PATHS ENV PATH
- NO_CMAKE_FIND_ROOT_PATH
- )
- add_executable(fluid IMPORTED)
- set_target_properties(fluid
- PROPERTIES IMPORTED_LOCATION ${FLUID_PATH}
- )
- set(FLTK_FLUID_EXECUTABLE ${FLUID_PATH})
-else()
- set(FLTK_FLUID_EXECUTABLE fluid)
-endif(CMAKE_CROSSCOMPILING)
+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})'.")
-set(FLTK_WRAP_UI TRUE)
+#
+# End of file
+#