Skip to content

Commit

Permalink
Update llama-config.cmake.in
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardmgruber committed May 24, 2022
1 parent 21d2ce7 commit c14cd1d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion cmake/llama-config.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,15 @@ endif()
set(llama_INCLUDE_DIR ${llama_INCLUDE_DIR} "${PACKAGE_PREFIX_DIR}/include")
target_include_directories(llama INTERFACE ${llama_INCLUDE_DIR})

# Boost
# dependencies
find_package(Boost 1.70.0 REQUIRED)
find_package(fmt CONFIG QUIET)
target_link_libraries(llama INTERFACE Boost::headers)
if (fmt_FOUND)
target_link_libraries(${PROJECT_NAME} INTERFACE fmt::fmt)
else()
message(WARNING "The fmt library was not found. You cannot use llama's dumping facilities.")
endif()


INCLUDE(FindPackageHandleStandardArgs)
Expand Down

0 comments on commit c14cd1d

Please sign in to comment.