From 7fac9e211289d5c89e20a7ca81326d87b36eb819 Mon Sep 17 00:00:00 2001 From: vng Date: Sat, 1 May 2021 15:28:40 +0300 Subject: [PATCH] Do not compile boost region operators in mobile app. Signed-off-by: vng --- geometry/CMakeLists.txt | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/geometry/CMakeLists.txt b/geometry/CMakeLists.txt index bd79b39286..01b3126bc2 100644 --- a/geometry/CMakeLists.txt +++ b/geometry/CMakeLists.txt @@ -66,12 +66,17 @@ set( tree4d.hpp triangle2d.cpp triangle2d.hpp - - region2d/binary_operators.cpp - region2d/binary_operators.hpp - region2d/boost_concept.hpp ) +if (NOT PLATFORM_IPHONE AND NOT PLATFORM_ANDROID) + append( + SRC + region2d/binary_operators.cpp + region2d/binary_operators.hpp + region2d/boost_concept.hpp + ) +endif() + omim_add_library(${PROJECT_NAME} ${SRC}) omim_add_test_subdirectory(geometry_tests)