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

Boost setup takes a lot of time #7

Open
SAtacker opened this issue Feb 5, 2023 · 2 comments
Open

Boost setup takes a lot of time #7

SAtacker opened this issue Feb 5, 2023 · 2 comments
Labels
cmake enhancement New feature or request good first issue Good for newcomers

Comments

@SAtacker
Copy link
Owner

SAtacker commented Feb 5, 2023

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()
@SAtacker SAtacker added enhancement New feature or request good first issue Good for newcomers cmake labels Feb 5, 2023
@PritK99
Copy link
Contributor

PritK99 commented Feb 7, 2023

I tried to add the following to CMakeLists.txt, but now it takes a lot of time to build on ubuntu.
Please review : https://github.com/PritK99/quick-ftxui/blob/prit_dev/CMakeLists.txt

@SAtacker
Copy link
Owner Author

SAtacker commented Feb 7, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cmake enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants