summaryrefslogtreecommitdiff
path: root/devel/cmake/files/patch-Modules_FindFLEX.cmake
diff options
context:
space:
mode:
authorTobias C. Berner <tcberner@FreeBSD.org>2020-01-19 09:26:54 +0000
committerTobias C. Berner <tcberner@FreeBSD.org>2020-01-19 09:26:54 +0000
commitc00bfac9409328ec597d7c82dd714412304df610 (patch)
tree3ad5e2ce3dc95139856033f834c64eba50433ea6 /devel/cmake/files/patch-Modules_FindFLEX.cmake
parentUpdate to the 20200117 snapshot of GCC 8.3.1. (diff)
devel/cmake: Make Flex find module look in ${LOCALBASE}
PR: 243068 Reported by: yuri
Notes
Notes: svn path=/head/; revision=523523
Diffstat (limited to 'devel/cmake/files/patch-Modules_FindFLEX.cmake')
-rw-r--r--devel/cmake/files/patch-Modules_FindFLEX.cmake20
1 files changed, 20 insertions, 0 deletions
diff --git a/devel/cmake/files/patch-Modules_FindFLEX.cmake b/devel/cmake/files/patch-Modules_FindFLEX.cmake
new file mode 100644
index 000000000000..0d448b432d68
--- /dev/null
+++ b/devel/cmake/files/patch-Modules_FindFLEX.cmake
@@ -0,0 +1,20 @@
+--- Modules/FindFLEX.cmake.orig 2020-01-19 09:02:30 UTC
++++ Modules/FindFLEX.cmake
+@@ -103,10 +103,15 @@ find_program(FLEX_EXECUTABLE NAMES flex win_flex DOC "
+ mark_as_advanced(FLEX_EXECUTABLE)
+
+ find_library(FL_LIBRARY NAMES fl
+- DOC "Path to the fl library")
++ DOC "Path to the fl library"
++ PATHS %%LOCALBASE%%/lib
++ )
+
+ find_path(FLEX_INCLUDE_DIR FlexLexer.h
+- DOC "Path to the flex headers")
++ DOC "Path to the flex headers"
++ PATHS %%LOCALBASE%%/include
++ PATH_SUFFIXES flex
++ )
+
+ mark_as_advanced(FL_LIBRARY FLEX_INCLUDE_DIR)
+