Skip to content

Evoke cannot be built with CMake 3.16.0 & Boost 1.71.0 #81

@michaelvlach

Description

@michaelvlach

Describe the bug
CMake is unable to find Boost.

To Reproduce
Steps to reproduce the behavior:

  1. Follow the build instructions of evoke.

Expected behavior
Boost is found by CMake.

Screenshots

System (please complete the following information):

  • OS: Windows 10
  • Compiler: VS19
  • Usage/IDE: Command line

Additional context
So CMake and Boost have a "funny" history in that CMake has hard-coded Boost layout and every time Boost makes a release it breaks CMakeList.txt that relies on in-built support of Boost in CMake. It takes CMake people LONG time to fix this every time. Today it is almost 3 monts since last Boost release (28th August) and almost 2 from last CMake release (2nd October).

Anyhow, this is really inpractical and I would suggest ditching reliance on CMake and Boost magically being available & compatible versions. Instead create a git subtree in Evoke repo pointing here: https://github.com/boostorg/filesystem and here: https://github.com/boostorg/system

And point CMake to those places directtly bypassing this unreliable Boost detection. You will also gain control over what version of Boost you and users of Evoke are using AND drop the only external dependency you have (except for CMake itself). Arguably CMake could be ditched as well. Judging from contents of the CMakeLists.txt a batch/sh file to bootstrap Evoke would be pretty trivial.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions