ports/devel/cmake/files/patch-Modules_FindFLEX.cmake
Adriaan de Groot 943e7f6125 devel/cmake: Update to 3.20.1
This new version of CMake is much more picky with the language
than previous versions, so there was a fair bit of fallout --
patched before this push with plenty of "fix in advance of CMake
3.20" commits.

Release notes are at
	https://cmake.org/cmake/help/v3.20/release/3.20.html

Thanks to antoine@ for multiple exp-runs.
2021-04-22 22:23:07 +02:00

20 lines
548 B
CMake

--- Modules/FindFLEX.cmake.orig 2021-03-23 15:43:17 UTC
+++ Modules/FindFLEX.cmake
@@ -112,10 +112,15 @@ find_program(FLEX_EXECUTABLE NAMES flex win-flex win_f
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)