From d2da219ec0737583be2f4c8418a91d182a928401 Mon Sep 17 00:00:00 2001 From: Andrey Kamaev Date: Tue, 15 May 2012 07:43:00 +0000 Subject: [PATCH] Fixed incorrect CMake variable name --- cmake/OpenCVCompilerOptions.cmake | 2 +- cmake/OpenCVDetectCXXCompiler.cmake | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/OpenCVCompilerOptions.cmake b/cmake/OpenCVCompilerOptions.cmake index 02f21f7a7d..c76c0488e7 100644 --- a/cmake/OpenCVCompilerOptions.cmake +++ b/cmake/OpenCVCompilerOptions.cmake @@ -6,7 +6,7 @@ if (WIN32) endforeach() endif() - if(CMAKE_COMPILER_IS_GNUC) + if(CMAKE_COMPILER_IS_GNUCC) foreach(flags CMAKE_C_FLAGS CMAKE_C_FLAGS_RELEASE CMAKE_C_FLAGS_DEBUG) string(REPLACE "-O3" "-O2" ${flags} "${${flags}}") endforeach() diff --git a/cmake/OpenCVDetectCXXCompiler.cmake b/cmake/OpenCVDetectCXXCompiler.cmake index 091e6f7ec8..7c53338f39 100644 --- a/cmake/OpenCVDetectCXXCompiler.cmake +++ b/cmake/OpenCVDetectCXXCompiler.cmake @@ -11,7 +11,7 @@ if(NOT APPLE) unset(ENABLE_PRECOMPILED_HEADERS CACHE) endif() if(CMAKE_C_COMPILER_ID STREQUAL "Clang") - set(CMAKE_COMPILER_IS_GNUC 1) + set(CMAKE_COMPILER_IS_GNUCC 1) unset(ENABLE_PRECOMPILED_HEADERS CACHE) endif() endif()