Fixed compiler options in Android build (Windows)

This commit is contained in:
Andrey Kamaev 2011-06-28 05:51:41 +00:00
parent ba7ee71c20
commit 591cb1b3cf

View File

@ -66,10 +66,8 @@ if(CMAKE_VERBOSE)
set(CMAKE_VERBOSE_MAKEFILE 1)
endif()
if (WIN32)
if(${CMAKE_GENERATOR} MATCHES "(MinGW)|(MSYS)")
if (WIN32 AND ${CMAKE_GENERATOR} MATCHES "(MinGW)|(MSYS)" AND NOT ANDROID)
set(CMAKE_CXX_FLAGS_RELEASE "-O2 -DNDEBUG" CACHE STRING "")
endif()
endif()