From 3996f19dae6466eea2632ab095200e9e6333ef0c Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Tue, 24 Jun 2014 11:23:49 +0000 Subject: [PATCH] use c99 standard on Android to have ismin/isinf in std:: --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index adaa91ad85..bf9110af76 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -338,6 +338,8 @@ if(ENABLE_BLAS_LAPACK) list(APPEND EXTERNAL_LIBRARIES ${LAPACK_LIB}) set_config_option(HAVE_LAPACK "Lapack") endif(LAPACK_LIB) + # for isnan/isinf + add_definitions(-D_GLIBCXX_USE_C99_MATH=1) endif(ENABLE_BUILD_ANDROID) if(NOT HAVE_BLAS OR NOT HAVE_LAPACK) -- GitLab