Skip to content
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

Adding support for fetching boost #10

Closed
wants to merge 9 commits into from
16 changes: 16 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,22 @@ set(CMAKE_CXX_STANDARD_REQUIRED 17)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_BUILD_TYPE Debug)


# --- Fetch boost --------------------------------------------------------------
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
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we enable only some part of boost for spirit instead of cloning all of it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we fetch only https://github.com/boostorg/spirit.git and https://github.com/boostorg/regex.git instead of fetching https://github.com/boostorg/boost.git as whole ?
The code builds in ubuntu if we just fetch boost for spirit and regex.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you try to fetch spirit only and please let me know?

GIT_TAG boost-1.81.0
)
FetchContent_MakeAvailable(Boost)
else()
find_package(Boost 1.81.0 REQUIRED COMPONENTS spirit)
endif()

# --- Fetch FTXUI --------------------------------------------------------------
include(FetchContent)

Expand Down