winflexbison icon indicating copy to clipboard operation
winflexbison copied to clipboard

chocolatey package and include paths

Open lexxmark opened this issue 6 years ago • 3 comments

Issue from Gianluca Sforna:

Linux guy here, trying to understand how to integrate this package in my build enviroment based on cmake. Basically, cmake's find_package(FLEX) and find_package(BISON) macros work, but the FLEX_INCLUDE_DIR is not populated so FlexLexer.h is not found during build. I assume this is because the shim for the executables works as expected (Flex is found as C:/ProgramData/chocolatey/bin/win_flex.exe) but the header is not in the same directory.

Anyone has an hint for me about the best way to fix this?

lexxmark avatar May 26 '19 23:05 lexxmark

As the unzip of the package should directly create the header next to the binaries - I have no clue. But the chocolatey docs says the correct place to ask is https://gitter.im/chocolatey/choco - you may want to try this.

GitMensch avatar Jun 03 '19 19:06 GitMensch

Any news on this issue in 2021?

zhanghongce avatar Oct 17 '21 04:10 zhanghongce

I am the OP. To date we are still manually adding C:\ProgramData\chocolatey\lib\winflexbison3\tools to PATH before running cmake. This way FLEX_INCLUDE_DIR is correctly populated. I am considering opening an issue with cmake to add some chcolatey specific search logic. Do anyone know if the installation path for chocolatey is always the same (C:\ProgramData\chocolatey)?

giallu avatar Apr 05 '22 22:04 giallu