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
explore find_package for MSVC CMake #91
Comments
I have tested several ways of solution and found one possible way: do not use "stage" folder for building boos libs
Its important to keep x86 libraries in "stage32" not "stage" folder
Now it correctly finds boost and creates correct vsproj files If machine has only one boost and its installed in default folder - no need in additional flags when running cmake. This solution only when you have two boosts To check if it finds boost correctly you can try temptorary modifying cmakelists.txt file:
add this before "if(MSVC)" and it will print found library path After boost will be found correctly we need modify CMakeLists.txt to add boost libraries to linker (now it does not have them) |
and one more way to solve this:
this code should be called befor find_package(boost) and will initialize library dir automatically based on MSVC version, but require to have BOOST_ROOT set, that can be got from Environment |
Beast 1.0.0-b32 now supports finding Boost packages on Windows! |
It would be nice to use find_package for Boost when building Visual Studio projects but I couldn't get that to work and support both 32 and 64 bit compiled boost and projects on the same machine.
The text was updated successfully, but these errors were encountered: