Description
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:
See also "D:/a/github-action-tests/github-action-tests/build/CMakeFiles/CMakeOutput.log".
29
considered to be NOT FOUND. Reason given by package:
30
31
No suitable build variant has been found.
32
33
The following variants have been tried and rejected:
34
35
* libboost_thread-vc141-mt-gd-x32-1_72.lib (32 bit, need 64)
36
37
* libboost_thread-vc141-mt-gd-x64-1_72.lib (vc141, detected vc142, set
38
Boost_COMPILER to override)
39
40
* libboost_thread-vc141-mt-x32-1_72.lib (32 bit, need 64)
41
42
* libboost_thread-vc141-mt-x64-1_72.lib (vc141, detected vc142, set
43
Boost_COMPILER to override)
Should I use legacy
to actually bump the compiler version with toolset?