diff --git a/cmake/OpenCVDetectCXXCompiler.cmake b/cmake/OpenCVDetectCXXCompiler.cmake index afe0459d17..67e2a0f903 100644 --- a/cmake/OpenCVDetectCXXCompiler.cmake +++ b/cmake/OpenCVDetectCXXCompiler.cmake @@ -188,7 +188,7 @@ if(ENABLE_CXX11) set(CMAKE_CXX_STANDARD 11) set(CMAKE_CXX_STANDARD_REQUIRED TRUE) set(CMAKE_CXX_EXTENSIONS OFF) # use -std=c++11 instead of -std=gnu++11 - if(XCMAKE_CXX11_COMPILE_FEATURES) + if(CMAKE_CXX11_COMPILE_FEATURES) set(HAVE_CXX11 ON) endif() endif()