Skip to content

Commit

Permalink
Merge pull request #12 from dr7ana/fmt-fix
Browse files Browse the repository at this point in the history
GNU error handling for fmt version 10.0.0
  • Loading branch information
jagerman committed Aug 11, 2023
2 parents a431905 + e7cd75d commit b6e70ad
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Expand Up @@ -72,6 +72,11 @@ add_library(oxen-logging STATIC
src/log.cpp
src/type.cpp
)

if(CMAKE_CXX_COMPILER_ID STREQUAL GNU AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 13 AND fmt_VERSION VERSION_LESS 10.0.1)
target_compile_options(oxen-logging PUBLIC -Wno-error=dangling-reference)
endif()

target_include_directories(oxen-logging PUBLIC include)
target_link_libraries(oxen-logging PUBLIC ${OXEN_LOGGING_FMT_TARGET} ${OXEN_LOGGING_SPDLOG_TARGET})
target_compile_features(oxen-logging PUBLIC cxx_std_17)
Expand Down

0 comments on commit b6e70ad

Please sign in to comment.