Skip to content

Commit 84050ba

Browse files
committed
i think it works now!
1 parent 8d5b694 commit 84050ba

2 files changed

Lines changed: 26 additions & 17 deletions

File tree

‎CMakeLists.txt‎

Lines changed: 25 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,29 @@ set(CMAKE_CXX_STANDARD 26)
55

66
# this part is vibecoded
77
include(FetchContent)
8-
foreach(dep multiprecision config assert)
9-
FetchContent_Declare(boost_${dep}
10-
GIT_REPOSITORY https://github.com{dep}.git
11-
GIT_TAG boost-1.85.0
12-
GIT_SHALLOW ON
13-
)
14-
endforeach()
15-
FetchContent_MakeAvailable(boost_multiprecision boost_config boost_assert)
8+
9+
FetchContent_Declare(
10+
boost_config
11+
GIT_REPOSITORY https://github.com/boostorg/config.git
12+
GIT_TAG boost-1.85.0
13+
GIT_SHALLOW ON
14+
)
15+
16+
FetchContent_Declare(
17+
boost_assert
18+
GIT_REPOSITORY https://github.com/boostorg/assert.git
19+
GIT_TAG boost-1.85.0
20+
GIT_SHALLOW ON
21+
)
22+
23+
FetchContent_Declare(
24+
boost_multiprecision
25+
GIT_REPOSITORY https://github.com/boostorg/multiprecision.git
26+
GIT_TAG boost-1.85.0
27+
GIT_SHALLOW ON
28+
)
29+
30+
FetchContent_MakeAvailable(boost_config boost_assert boost_multiprecision)
1631

1732

1833
add_executable(basiclang main.cpp
@@ -27,11 +42,5 @@ add_executable(basiclang main.cpp
2742
)
2843

2944
# this part is vibecoded too
30-
31-
target_include_directories(basiclang PRIVATE
32-
${boost_multiprecision_SOURCE_DIR}/include
33-
${boost_config_SOURCE_DIR}/include
34-
${boost_assert_SOURCE_DIR}/include
35-
)
36-
37-
target_compile_definitions(basiclang PRIVATE BOOST_MP_STANDALONE)
45+
target_compile_definitions(basiclang PRIVATE BOOST_MP_STANDALONE)
46+
target_link_libraries(basiclang PRIVATE boost_multiprecision boost_config boost_assert)

‎sumOfNumbersDemo.basiclang‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
out "Hey! Give me a \"number\"! \n"
1+
out "Hey! Give me a number! \n"
22
in "{a}"
33

44
i = 0

0 commit comments

Comments
 (0)