From d08589d435d7c02eeba7025c63809ecb8e51cb57 Mon Sep 17 00:00:00 2001 From: Andrew Senin Date: Sun, 25 Jan 2015 21:56:33 +0400 Subject: [PATCH] Fix for Visual Studio multiprocess builds for CMake versions > 2.8 --- cmake/OpenCVCRTLinkage.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/OpenCVCRTLinkage.cmake b/cmake/OpenCVCRTLinkage.cmake index 5265e3e8a..7b7fcad7e 100644 --- a/cmake/OpenCVCRTLinkage.cmake +++ b/cmake/OpenCVCRTLinkage.cmake @@ -77,7 +77,7 @@ else() endforeach(flag_var) endif() -if(NOT ${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} LESS 2.8 AND NOT ${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION} LESS 8.6) +if(CMAKE_VERSION VERSION_GREATER "2.8.6") include(ProcessorCount) ProcessorCount(N) if(NOT N EQUAL 0)