I’m trying to conifigure a third-party project using cmake 3.23
which requires FLEX, and I have both of them on my machine
and for some reason it doesn’t pick up where they are,
telling me that it couldn’t find flex executable.
here’s the error message:
CMake Error at C:/Program Files/CMake/share/cmake-3.23/Modules/FindPackageHandleStandardArgs.cmake:230 (message): Could NOT find FLEX (missing: FLEX_EXECUTABLE) Call Stack (most recent call first): C:/Program Files/CMake/share/cmake-3.23/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE) C:/Program Files/CMake/share/cmake-3.23/Modules/FindFLEX.cmake:264 (FIND_PACKAGE_HANDLE_STANDARD_ARGS) CMakeLists.txt:109 (find_package)
so I tried going through error source
and I couldn’t find where cmake points the directory for to pickup the executable,
docs didn’t help much either.
so I want to know where the hell cmake points the directory
or how would I change it’s directory without f**king this everything up.
I also face a similar issue when conifiguring for codeblocks
where I need to manually set it’s directory everytime
whenever I conifigure a project with codeblocks