From 226b0f03c8bcfdd3ad73135a32d6f39fab79c46b Mon Sep 17 00:00:00 2001 From: x7z4w Date: Sun, 16 Nov 2025 15:49:49 +0000 Subject: [PATCH] [cmake] Fix Android boost errors Signed-off-by: x7z4w --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9f0e897d0..a1791f75e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -222,6 +222,11 @@ if (PLATFORM_DESKTOP AND NOT WITH_SYSTEM_PROVIDED_3PARTY) include_directories("${PROJECT_BINARY_DIR}/3party/gflags/include") endif() +# Android fails to find boost in many cases, this fixes it. +if (PLATFORM_ANDROID) + include_directories("${OMIM_ROOT}/3party/boost") +endif() + # Used in qt/ and shaders/ find_package(Python3 REQUIRED COMPONENTS Interpreter)