Browse Source

CMake: only add tjunittest if turbojpeg found

pull/3/head
Christian Beier 6 years ago
parent
commit
417eb7590b
  1. 4
      CMakeLists.txt

4
CMakeLists.txt

@ -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