Skip to content

Boost setup takes a lot of time #7

@SAtacker

Description

@SAtacker

Don't depend on system provided boost.
Add QUICK_FTXUI_BOOST option which is ON by default.
Use fetchcontent to fetch boost from GitHub when it is ON.

option(QUICK_FTXUI_BOOST "Enable boost fetching from GitHub" ON)
if(QUICK_FTXUI_BOOST)
set(BOOST_ENABLE_CMAKE ON)
include(FetchContent)
FetchContent_Declare(
  Boost
  GIT_REPOSITORY https://github.com/boostorg/boost.git
  GIT_TAG boost-1.81.0
)
FetchContent_MakeAvailable(Boost)
else()
find_package(Boost 1.81.0 REQUIRED COMPONENTS spirit) 
endif()

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions