File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,14 +5,29 @@ set(CMAKE_CXX_STANDARD 26)
55
66# this part is vibecoded
77include (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
1833add_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 )
Original file line number Diff line number Diff line change 1- out "Hey! Give me a \" number\" ! \n"
1+ out "Hey! Give me a number! \n"
22in "{a}"
33
44i = 0
You can’t perform that action at this time.
0 commit comments