From ca890a7995a6bc024cf327709d1b2d944d91589a Mon Sep 17 00:00:00 2001 From: Nikolay Khilyuk Date: Wed, 8 Jul 2020 23:57:51 +0300 Subject: [PATCH] Adaptation to Android NDK build Signed-off-by: Nikolay Khilyuk --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 36a15513347..457aeb77cbd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -458,7 +458,9 @@ endif() install(DIRECTORY Eigen DESTINATION ${INCLUDE_INSTALL_DIR} COMPONENT Devel) +if(NOT ANDROID) add_subdirectory(doc EXCLUDE_FROM_ALL) +endif() option(BUILD_TESTING "Enable creation of Eigen tests." ON) if(BUILD_TESTING) @@ -510,19 +512,21 @@ if(EIGEN_TEST_SYCL) endif() endif() +if(NOT ANDROID) add_subdirectory(unsupported) add_subdirectory(demos EXCLUDE_FROM_ALL) # must be after test and unsupported, for configuring buildtests.in add_subdirectory(scripts EXCLUDE_FROM_ALL) +endif() # TODO: consider also replacing EIGEN_BUILD_BTL by a custom target "make btl"? if(EIGEN_BUILD_BTL) add_subdirectory(bench/btl EXCLUDE_FROM_ALL) endif() -if(NOT WIN32) +if(NOT WIN32 AND NOT ANDROID) add_subdirectory(bench/spbench EXCLUDE_FROM_ALL) endif()