There was an error while loading. Please reload this page.
1 parent fca9940 commit c7971c3Copy full SHA for c7971c3
1 file changed
CMakeLists.txt
@@ -428,10 +428,13 @@ else()
428
NAME djpeg-diff-test2
429
COMMAND ${CMAKE_COMMAND} -E compare_files ${srcdir}/testimg.bmp testout.bmp
430
)
431
- if(MSVC)
432
- add_test(${test_opts} CONFIGURATIONS Debug)
433
- else()
+ if(NOT MSVC OR MSVC_VERSION VERSION_LESS 1600) # Visual Studio 10 2010
434
add_test(${test_opts})
+ else()
+ # Since Visual Studio 10 2010 Release version produce slightly different
435
+ # final image so it doesn't match etalon:
436
+ # * https://ci.appveyor.com/project/ruslo/jpeg/build/1.0.2
437
+ add_test(${test_opts} CONFIGURATIONS Debug)
438
endif()
439
440
set_tests_properties(djpeg-diff-test2 PROPERTIES DEPENDS djpeg-test2)
0 commit comments