Skip to content

Commit c7971c3

Browse files
committed
Add comments
1 parent fca9940 commit c7971c3

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

CMakeLists.txt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -428,10 +428,13 @@ else()
428428
NAME djpeg-diff-test2
429429
COMMAND ${CMAKE_COMMAND} -E compare_files ${srcdir}/testimg.bmp testout.bmp
430430
)
431-
if(MSVC)
432-
add_test(${test_opts} CONFIGURATIONS Debug)
433-
else()
431+
if(NOT MSVC OR MSVC_VERSION VERSION_LESS 1600) # Visual Studio 10 2010
434432
add_test(${test_opts})
433+
else()
434+
# 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)
435438
endif()
436439

437440
set_tests_properties(djpeg-diff-test2 PROPERTIES DEPENDS djpeg-test2)

0 commit comments

Comments
 (0)