From 591cb1b3cf9e5bdab964c63682ca356c352eae00 Mon Sep 17 00:00:00 2001 From: Andrey Kamaev Date: Tue, 28 Jun 2011 05:51:41 +0000 Subject: [PATCH] Fixed compiler options in Android build (Windows) --- CMakeLists.txt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8bf2a9bee2..24cb1d0120 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -66,10 +66,8 @@ if(CMAKE_VERBOSE) set(CMAKE_VERBOSE_MAKEFILE 1) endif() -if (WIN32) - if(${CMAKE_GENERATOR} MATCHES "(MinGW)|(MSYS)") - set(CMAKE_CXX_FLAGS_RELEASE "-O2 -DNDEBUG" CACHE STRING "") - endif() +if (WIN32 AND ${CMAKE_GENERATOR} MATCHES "(MinGW)|(MSYS)" AND NOT ANDROID) + set(CMAKE_CXX_FLAGS_RELEASE "-O2 -DNDEBUG" CACHE STRING "") endif()