From ff8fe39e23e847a2b4e90e49bb962a6adb9eb8c2 Mon Sep 17 00:00:00 2001 From: Andrey Kamaev Date: Tue, 5 Jul 2011 06:42:56 +0000 Subject: [PATCH] removed duplicated compiler flags assignment --- CMakeLists.txt | 6 ------ OpenCVConfig.cmake.in | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8ef695d16e..a65ab68307 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -59,12 +59,6 @@ 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() -endif() - # -------------------------------------------------------------- # Indicate CMake 2.7 and above that we don't want to mix relative # and absolute paths in linker lib lists. diff --git a/OpenCVConfig.cmake.in b/OpenCVConfig.cmake.in index 50dfb13685..094cf3715e 100644 --- a/OpenCVConfig.cmake.in +++ b/OpenCVConfig.cmake.in @@ -155,7 +155,7 @@ IF (OpenCV_HAVE_ANDROID_CAMERA) ) endforeach() endmacro() -ENDIF(ANDROID) +ENDIF() # ====================================================== # Version variables: