-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Building release on Windows #9476
Conversation
fd19912
to
a2fa30d
Compare
bd4d733
to
2f1fafa
Compare
Now the build and test jobs work, but is still using the |
My current guess is that this is due to installing boost compiled with VS 2017. |
eeeab03
to
7a8c234
Compare
8a4f563
to
afe98cc
Compare
.. _Visual Studio 2017: https://www.visualstudio.com/vs/ | ||
.. _Visual Studio 2017 Build Tools: https://www.visualstudio.com/downloads/#build-tools-for-visual-studio-2017 | ||
.. _Visual Studio 2019: https://www.visualstudio.com/vs/ | ||
.. _Visual Studio 2019 Build Tools: https://www.visualstudio.com/downloads/#build-tools-for-visual-studio-2019 | ||
|
||
Dependencies Helper Script |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we should switch the Or, on windows:
part of this to scripts/install_deps.ps1
now? And maybe mention that that doesn't attempt to install dependencies globally, but just puts them in deps/
... and that it will not only build boost, but also fetch a cmake version that can be used to deps/cmake
...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If so we can remove scripts/install_deps.bat
...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you do that, please? :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just quickly wrote up something at both places, but in a hurry, so better to have another look later I guess.
@@ -362,7 +362,7 @@ And for Windows: | |||
|
|||
mkdir build | |||
cd build | |||
cmake -G "Visual Studio 15 2017 Win64" .. | |||
cmake -G "Visual Studio 16 2019 Win64" .. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we should also mention here that, if this is supposed to use the boost version built by install_deps.ps1
, it also needs -DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded
and -DBoost_DIR="..\deps\boost\lib\cmake\Boost-<BoostVersion>
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(Which is the complications I warned about in #9811 (comment) ;-))
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you do that change, please?
Looks like the release build is not a release build. |
eccedc1
to
5935905
Compare
56a7b47
to
d6a0382
Compare
d6a0382
to
165f898
Compare
Finally working! |
Getting Windows tests running on CI
cmake -DCMAKE_CXX_VERSION=20
(defaulting to 17); as this did conflict with AppVeyor CI always passing its own toolchain file (to vcpkg)Notes
This PR is based on #9694 which is based on top of #9693