Skip to content

Problems with CMake on Windows  #92

Open
@mi01

Description

@mi01

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,

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions