Skip to content

Commit

Permalink
Require compatible fmt_DIR or submodule
Browse files Browse the repository at this point in the history
  • Loading branch information
adayton1 committed Jul 18, 2023
1 parent 0692ba8 commit 9e4bf8e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/tpl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,9 @@ if (NOT TARGET camp)
endif ()

if (NOT TARGET fmt::fmt)
find_package(fmt 9.1...10 QUIET)

if (NOT fmt_FOUND)
if (DEFINED fmt_DIR)
find_package(fmt 9.1...10 REQUIRED NO_DEFAULT_PATH PATHS ${fmt_DIR})
else ()
set(FMT_INSTALL ON)
set(FMT_SYSTEM_HEADERS ON)
add_subdirectory(umpire/fmt)
Expand Down

0 comments on commit 9e4bf8e

Please sign in to comment.