From 808656a51df59b52fa48d70fdf556690fa03c6c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mikkel=20H=C3=B8jlund=20Larsen?= Date: Wed, 16 Oct 2024 09:42:59 +0200 Subject: [PATCH] Add -D_LARGEFILE64_SOURCE flag to abseil in CMake --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index a476676..442c229 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -31,6 +31,10 @@ list(FILTER sw_protobuf_abseil_sources EXCLUDE REGEX .*absl\/.*\/.*_mock_.*) add_library(sw_protobuf_abseil STATIC ${sw_protobuf_abseil_sources}) target_compile_features(sw_protobuf_abseil PUBLIC cxx_std_17) target_include_directories(sw_protobuf_abseil PUBLIC ${STEINWURF_RESOLVE}/protobuf-source/third_party/abseil-cpp) +# Abseil has to be compiled with -D_LARGEFILE64_SOURCE +target_compile_options(sw_protobuf_abseil PUBLIC -D_LARGEFILE64_SOURCE) + + if(ANDROID) target_link_libraries(sw_protobuf_abseil log)