Skip to content

Commit

Permalink
lmdb: skip target_link_options -Wno-stringop-overflow on bsd and darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
pstorz authored and arogge committed Nov 2, 2021
1 parent 1357fd6 commit 27e7664
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/src/lmdb/CMakeLists.txt
Expand Up @@ -29,7 +29,9 @@ target_compile_options(
)
# for at least Fedora 33 we need to set target_link_options so lto doesn't
# complain either
target_link_options(bareoslmdb PRIVATE -Wno-stringop-overflow)
if(NOT HAVE_DARWIN_OS OR NOT HAVE_FREEBSD_OS)
target_link_options(bareoslmdb PRIVATE -Wno-stringop-overflow)
endif()

# empty the include_directories
set_property(TARGET bareoslmdb PROPERTY INCLUDE_DIRECTORIES "")
Expand Down

0 comments on commit 27e7664

Please sign in to comment.