-
Notifications
You must be signed in to change notification settings - Fork 95
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
Problems with CMake on Windows #92
Comments
Did you look at the https://github.com/jgaa/restc-cpp/blob/master/build_vc2017.bat file? |
Yes, i used the batch script, but this seems to be a CMake problem. I enabled the Boost_DEBUG flag to get some verbose output:
The boost binarys are at C:/Data/boost_1_70_0/stage/lib in my case and CMake is looking there as you can see, but it is not able to find the files, because it is not expecting the prefix lib. Enabling the flag Boost_USE_STATIC_LIBS helped here. I did nothing unusual with Boost and used a fresh copy of it. I build it by just invoking |
It seems like boost 1.70 broke something. I'll fix it. |
Thanks @mi01 , adding |
Hello,
while i had no problems to build the project on Linux, but i spent quite a while to make this work on Windows. Actually the problem was about linking Boost, CMake didnt found the necessary libraries. CMake was looking for a file like boost_system-vc141-mt-x64-1_70.lib for example, but actually the name of a static library is libboost_system-vc141-mt-x64-1_70.lib on Windows. I was able to solve this issue by adding the following command to the CMakeLists.txt:
set(Boost_USE_STATIC_LIBS ON)
I was using VS2017, Windows 10, CMake 3.15.2 and Boost 1.70.0,
The text was updated successfully, but these errors were encountered: