Add support for VS2015
authorPatrik Huber <patrikhuber@gmail.com>
Sat, 2 May 2015 12:31:43 +0000 (13:31 +0100)
committerPatrik Huber <patrikhuber@gmail.com>
Sat, 2 May 2015 12:31:43 +0000 (13:31 +0100)
Without the fix, OpenCV will compile and silently copy the compiled libs/executables to a location not prefixed with arch/vc14, and OpenCV won't be picked up by find_package and OpenCVConfig.cmake.

cmake/OpenCVConfig.cmake
cmake/OpenCVDetectCXXCompiler.cmake

index 9916240..e2ce60f 100644 (file)
@@ -79,6 +79,8 @@ if(MSVC)
     set(OpenCV_RUNTIME vc11)
   elseif(MSVC_VERSION EQUAL 1800)
     set(OpenCV_RUNTIME vc12)
+  elseif(MSVC_VERSION EQUAL 1900)
+    set(OpenCV_RUNTIME vc14)
   endif()
 elseif(MINGW)
   set(OpenCV_RUNTIME mingw)
index c5e71b9..aa7a8b6 100644 (file)
@@ -140,6 +140,8 @@ if(MSVC)
     set(OpenCV_RUNTIME vc11)
   elseif(MSVC_VERSION EQUAL 1800)
     set(OpenCV_RUNTIME vc12)
+  elseif(MSVC_VERSION EQUAL 1900)
+    set(OpenCV_RUNTIME vc14)
   endif()
 elseif(MINGW)
   set(OpenCV_RUNTIME mingw)