Skip to content

Changes required to CMakeLists.txt files to build on 64-bit Windows #112

@taa01776

Description

@taa01776

Using the 0.9.4 source, CMake 2.8.1, and Visual Studio 2010, I found that I needed some changes to get everything to build:

  • In the main CMakeLists.txt file, add "include_directories(${OPENSSL_INCLUDE_DIR}) inside the OPENSSL_FOUND conditional at line 19.
  • Also in the main file, add
    if (MSVC)
    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /bigobj")
    endif()
  • in libs/network/example/CMakeLists.txt, add Boost_FILESYSTEM_LIBRARY to the BOOST_CLIENT_LIBS and BOOST_SERVER_LIBS variables.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions