-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Boost header(s) files not found #687
Comments
Hello, @MonkeyBreaker |
Okay, thank you ! But why after calling I would expect it to be: |
We use non default path for boost thus, not be found by CMake, you can tell CMake where to look for:
|
We could also add them to the |
@MonkeyBreaker, any updates? |
I'll look this week for a solution to add the variables into the As I said before, I'll look for a better solution this week, and post here any updates. |
Hi, Well after digging this morning on the issue, I did not find any solution with only touching the .yaml file. I'm not an expert on this field, maybe someone else could come with a solution, but I'm won't explore further. The solution in our case that would not impact other users for the library is to do as follow: if(DEFINED ENV{BOOST_ROOT_1_72_0})
file(TO_CMAKE_PATH $ENV{BOOST_ROOT_1_72_0} CMAKE_BOOST_ROOT)
list(APPEND BOOST_ROOT "$ENV{CMAKE_BOOST_ROOT}")
list(APPEND BOOST_INCLUDEDIR "$ENV{CMAKE_BOOST_ROOT}/boost/include")
list(APPEND BOOST_LIBRARYDIR "$ENV{CMAKE_BOOST_ROOT}/lib")
endif()
find_package(Boost ...) I only have a last remark, could it be possible that you create a "generic" variable to the latest version of boost in the system ? Something around Have a nice day, |
Hello, @MonkeyBreaker Documentation: https://help.github.com/en/actions/configuring-and-managing-workflows/using-environment-variables
|
Hello @al-cheb, I like your solution, if you update on your side, we only need to touch the For me we can close this issue, but I don't know if it's already in the documentation, maybe add more information about the boost include directories, what do you think ? Otherwise, thank you for your help, |
@MonkeyBreaker thank you for your suggestion! I am closing this issue for now. Feel free to ping if you have any questions |
Describe the bug
After updating
BOOST_ROOT
according to #661 tolist(APPEND BOOST_ROOT $ENV{BOOST_ROOT_1_72_0})
. CMake finds the this folder:The problem is our compilation fails because it cannot find some headers files:
I looked into
C:/hostedtoolcache/windows/Boost/1.72.0/boost
but the files are not present (starting at line 165 of our pipeline, youll see all the files present inboost
folder).I also tried with
1_69_0
same result.Do I need to do something special to have access to the previous header files ?
Area for Triage:
Question, Bug, or Feature?:
Bug and question.
Virtual environments affected
Expected behavior
Build passes succesfully.
Actual behavior
Build fails with boost header files not found.
The text was updated successfully, but these errors were encountered: