CMake: only add tjunittest if turbojpeg found

pull/3/head
Christian Beier 6 years ago
parent a2e124d87a
commit 417eb7590b

@ -527,7 +527,9 @@ if(FOUND_LIBJPEG_TURBO)
endif(FOUND_LIBJPEG_TURBO)
add_test(NAME cargs COMMAND test_cargstest)
add_test(NAME turbojpeg COMMAND test_tjunittest)
if(FOUND_LIBJPEG_TURBO)
add_test(NAME turbojpeg COMMAND test_tjunittest)
endif(FOUND_LIBJPEG_TURBO)

Loading…
Cancel
Save