Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chocolatey package and include paths #43

Open
lexxmark opened this issue May 26, 2019 · 3 comments
Open

chocolatey package and include paths #43

lexxmark opened this issue May 26, 2019 · 3 comments

Comments

@lexxmark
Copy link
Owner

lexxmark commented May 26, 2019

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?

@GitMensch
Copy link
Collaborator

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.

@zhanghongce
Copy link

Any news on this issue in 2021?

@giallu
Copy link

giallu commented Apr 5, 2022

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)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants