Skip to content

Commit

Permalink
fix: OVERRIDE_FIND_PACKAGE for fmt and gtest (2)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxirmx committed Aug 30, 2024
1 parent 8bd54a6 commit 9a8a0f4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,9 @@ endif()

if(PREFER_SYSTEM_LIBFMT)
find_package(fmt 10 CONFIG)
else()
else(PREFER_SYSTEM_LIBFMT)
include_directories(${fmt_SOURCE_DIR}/include)

include(FetchContent)
FetchContent_Declare(
fmt
Expand All @@ -355,8 +357,8 @@ else()
OVERRIDE_FIND_PACKAGE
)
FetchContent_MakeAvailable(fmt)
include_directories(${fmt_SOURCE_DIR}/include)
endif()

endif(PREFER_SYSTEM_LIBFMT)

find_package(Boost 1.67 REQUIRED COMPONENTS chrono iostreams program_options)

Expand Down

0 comments on commit 9a8a0f4

Please sign in to comment.