ports/devel/cmake-core/files/patch-Modules_FindFLEX.cmake
Daniel Engberg b23ea4e2d2 devel/cmake: Create a meta-port for CMake
Create a meta-port for CMake to make it easier for the end user and
better handling of build dependencies.

This pushes devel/cmake into /devel/cmake-core and splits manpages and
its dependencies to /devel/cmake-man

Approved by:	kde (tcberner)
Differential Revision:	https://reviews.freebsd.org/D34957
2022-09-08 22:14:05 +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)