aboutsummaryrefslogtreecommitdiff
path: root/x11-toolkits/fltk/files/patch-CMake_macros.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'x11-toolkits/fltk/files/patch-CMake_macros.cmake')
-rw-r--r--x11-toolkits/fltk/files/patch-CMake_macros.cmake14
1 files changed, 14 insertions, 0 deletions
diff --git a/x11-toolkits/fltk/files/patch-CMake_macros.cmake b/x11-toolkits/fltk/files/patch-CMake_macros.cmake
new file mode 100644
index 000000000000..226b7405afcb
--- /dev/null
+++ b/x11-toolkits/fltk/files/patch-CMake_macros.cmake
@@ -0,0 +1,14 @@
+--- CMake/macros.cmake.orig 2019-03-03 08:40:23 UTC
++++ CMake/macros.cmake
+@@ -90,11 +90,6 @@ function(CREATE_EXAMPLE NAME SOURCES LIBRARIES)
+
+ set (tname ${NAME}) # target name
+
+- # rename reserved target name "help" (CMake 2.8.12 and later)
+- if (${tname} MATCHES "^help$")
+- set (tname "test_help")
+- endif (${tname} MATCHES "^help$")
+-
+ foreach(src ${SOURCES})
+ if ("${src}" MATCHES "\\.fl$")
+ list(APPEND flsrcs ${src})