Skip to content

Commit 1f25821

Browse files
Dorian Eikenbergrageagainsthepc
authored andcommitted
Add boost headers
Recent versions of boost-di require boost headers as a transitive dependency. Since those are included via FindPackage we need to override its default behavior so our target pulled in via FetchContent can be found instead of some system version.
1 parent 7087a59 commit 1f25821

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

vmicore/src/CMakeLists.txt

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.16)
1+
cmake_minimum_required(VERSION 3.24)
22
project(vmicore)
33

44
include(CheckPIESupported)
@@ -17,6 +17,13 @@ target_link_libraries(vmicore vmicore-lib)
1717

1818
# Setup Boost DI
1919

20+
FetchContent_Declare(
21+
Boost
22+
GIT_REPOSITORY https://github.com/boostorg/headers
23+
GIT_TAG master
24+
OVERRIDE_FIND_PACKAGE
25+
)
26+
2027
FetchContent_Declare(
2128
boost-di
2229
GIT_REPOSITORY https://github.com/boost-ext/di.git

0 commit comments

Comments
 (0)