Skip to content

Commit 2290f3f

Browse files
committed
Add automatic boost installation for web build
1 parent b576b65 commit 2290f3f

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

dependencies/CMakeLists.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,14 @@ FetchContent_Declare(
99
)
1010

1111

12+
FetchContent_Declare(
13+
boost_ext
14+
URL https://archives.boost.io/release/1.84.0/source/boost_1_84_0.tar.bz2
15+
)
16+
FetchContent_MakeAvailable(boost_ext)
17+
1218
add_library(boost_headers INTERFACE)
13-
target_include_directories(boost_headers INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}/boost_1_84_0")
19+
target_include_directories(boost_headers INTERFACE "${boost_ext_SOURCE_DIR}")
1420

1521
if(NOT EMSCRIPTEN)
1622
FetchContent_Declare(

0 commit comments

Comments
 (0)