Skip to content

Commit

Permalink
Find fmt in CMake
Browse files Browse the repository at this point in the history
  • Loading branch information
certik committed Sep 4, 2020
1 parent 5850724 commit 2f059c6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,12 @@ if (MSVC)
set(HAVE_LFORTRAN_DEMANGLE no)
endif()

# fmt
set(WITH_FMT no CACHE BOOL "Build with `fmt` support")
if (WITH_FMT)
find_package(fmt)
endif()

# Stacktrace
set(WITH_UNWIND no
CACHE BOOL "Build with unwind support")
Expand Down Expand Up @@ -194,6 +200,7 @@ message("HAVE_LFORTRAN_DEMANGLE: ${HAVE_LFORTRAN_DEMANGLE}")
message("WITH_LLVM: ${WITH_LLVM}")
message("WITH_XEUS: ${WITH_XEUS}")
message("WITH_JSON: ${WITH_JSON}")
message("WITH_FMT: ${WITH_FMT}")


add_subdirectory(src)

0 comments on commit 2f059c6

Please sign in to comment.