From d8b69d750df06ddbb1c4de1b884f8d3938b86079 Mon Sep 17 00:00:00 2001 From: Vadim Pisarevsky Date: Mon, 20 Aug 2012 19:46:52 +0400 Subject: [PATCH] some tweaks in optimization flags for opencv2.framework --- ios/cmake/Modules/Platform/iOS.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ios/cmake/Modules/Platform/iOS.cmake b/ios/cmake/Modules/Platform/iOS.cmake index e8389798bb..4ef75e7f15 100644 --- a/ios/cmake/Modules/Platform/iOS.cmake +++ b/ios/cmake/Modules/Platform/iOS.cmake @@ -42,7 +42,7 @@ set (CMAKE_CXX_OSX_CURRENT_VERSION_FLAG "${CMAKE_C_OSX_CURRENT_VERSION_FLAG}") set (CMAKE_C_FLAGS "") set (CMAKE_CXX_FLAGS "-headerpad_max_install_names -fvisibility=hidden -fvisibility-inlines-hidden") -set (CMAKE_CXX_FLAGS_RELEASE "-O3 -fomit-frame-pointer") +set (CMAKE_CXX_FLAGS_RELEASE "-DNDEBUG -O3 -fomit-frame-pointer -ffast-math") if (HAVE_FLAG_SEARCH_PATHS_FIRST) set (CMAKE_C_LINK_FLAGS "-Wl,-search_paths_first ${CMAKE_C_LINK_FLAGS}")