From 26fb7603c0aec8e6b6bcb3c381c58f39cac51700 Mon Sep 17 00:00:00 2001 From: Andrey Kamaev Date: Mon, 14 May 2012 14:51:13 +0000 Subject: [PATCH] Fixed typo #1896 --- cmake/OpenCVCompilerOptions.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/OpenCVCompilerOptions.cmake b/cmake/OpenCVCompilerOptions.cmake index 5218b2a06d..02f21f7a7d 100644 --- a/cmake/OpenCVCompilerOptions.cmake +++ b/cmake/OpenCVCompilerOptions.cmake @@ -4,13 +4,13 @@ if (WIN32) foreach(flags CMAKE_CXX_FLAGS CMAKE_CXX_FLAGS_RELEASE CMAKE_CXX_FLAGS_DEBUG) string(REPLACE "-O3" "-O2" ${flags} "${${flags}}") endforeach() - endforeach() + endif() if(CMAKE_COMPILER_IS_GNUC) foreach(flags CMAKE_C_FLAGS CMAKE_C_FLAGS_RELEASE CMAKE_C_FLAGS_DEBUG) string(REPLACE "-O3" "-O2" ${flags} "${${flags}}") endforeach() - endforeach() + endif() endif() if(MSVC)