Skip to content

Commit

Permalink
Add boost headers
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Dorian Eikenberg authored and rageagainsthepc committed Jul 10, 2024
1 parent 7087a59 commit 1f25821
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion vmicore/src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.16)
cmake_minimum_required(VERSION 3.24)
project(vmicore)

include(CheckPIESupported)
Expand All @@ -17,6 +17,13 @@ target_link_libraries(vmicore vmicore-lib)

# Setup Boost DI

FetchContent_Declare(
Boost
GIT_REPOSITORY https://github.com/boostorg/headers
GIT_TAG master
OVERRIDE_FIND_PACKAGE
)

FetchContent_Declare(
boost-di
GIT_REPOSITORY https://github.com/boost-ext/di.git
Expand Down

0 comments on commit 1f25821

Please sign in to comment.