-
Notifications
You must be signed in to change notification settings - Fork 4
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
find_package with Boost not working... #7
Comments
I am assuming you are using msvc 14.1 which is not supported by my own prebuilt boost versions as this compiler is slowly becoming obsolete (or is it?). But yes, I would also suggest using the legacy setting as - name: Install boost
uses: MarkusJx/install-boost@v2.0.0
with:
boost_version: 1.72.0
# You'll need this:
version: legacy
# And this:
toolset: msvc14.2 But if you need newer boost versions, I'll suggest either updating to msvc 14.2 or if you really depend on msvc 14.1, let me know, I could make that work using my own repository. |
Hmm, I have not changed anything with relation to the compiler version and the messages seem to indicate that the downloaded boost files are 14.1..? My compiler is actually 14.2 and CMake configure also shows this. Probably, I am just reading it wrong, but from where do you get the information that I use 14.1? Anyway, I will try with legacy+toolset (although this again seems to rather tell your action that 14.2 should be used instead of 14.1, indicating that I already use 14.2 but the download is wrong? bit confused here :) ) |
Oh, so you are using msvc 14.2? In that case this should work fine but for some reason your cmake seems to search for boost compiled using msvc 14.1, which is weird... |
I created a sample repository and there the job is failed, might be easier to see this way :) Maybe, I'm just doing something stupid: |
Found the issue. So I've just changed - name: Install boost
uses: MarkusJx/install-boost@v2.0.0
id: install-boost
with:
boost_version: 1.72.0 to - name: Install boost
uses: MarkusJx/install-boost@v2.0.0
id: install-boost
with:
boost_version: 1.72.0
platform_version: 2019 adding the I should add this to the readme or let the action figure out the runner's os version. |
Great! Thanks for taking the time, I also tested it on my repository and seems to work!! Will try on my "real repository" soon, hopefully it will work there, too. |
Hi,
thanks for the other answer, it was really helpful!
I have tried for some time getting this to run with CMake find_package Boost now on a Windows runner (windows-latest), but encounter some problems. I see in stage/lib that there are tons of lib files after your download action, which is great. But providing BOOST_ROOT into CMake does not seem to be enough for find_package to actually find boost (in particular, I have
find_package(Boost REQUIRED thread)
). It will always tell me:Could NOT find Boost (missing: Boost_INCLUDE_DIR thread)
Trying to run find_package in debug did not really help because it just gave tons of output that it looked for tons of specific boost lib files...
I also checked that BOOST_ROOT is really in CMake (used
message
to give me own debug output), but it was correctly set...Any idea? This is probably on this damn cmake
find_package
but maybe I get lucky here...Edit:
Hm, running it on a bare repository gives:
Should I use
legacy
to actually bump the compiler version with toolset?The text was updated successfully, but these errors were encountered: