chocolatey package and include paths
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?
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.
Any news on this issue in 2021?
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)?