From eb82cb462a2d853df142cccfa09a0f402efd8f82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Fri, 20 Jul 2012 14:50:20 +0200 Subject: [PATCH] Disabled RTTI and exceptions. They wouldn't probably be used at all (RTTI is too heavy for dynamic cast and has too few features to be used for reflection) and they break C++ rule "you don't pay for what you don't use". --- src/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index ba893f944..f2be2ee3c 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,4 +1,4 @@ -set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -pedantic -std=c++0x -fvisibility=hidden") +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -pedantic -std=c++0x -fvisibility=hidden -fno-rtti -fno-exceptions") # If targeting GLES, save it into configuration header if(TARGET_GLES)