File tree Expand file tree Collapse file tree 2 files changed +2
-7
lines changed
Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -21,11 +21,6 @@ if(EMSCRIPTEN)
2121 source_group ("others" FILES ${OJPH_IMG_IO_SSE4} )
2222 target_include_directories (ojph_compress_simd PRIVATE ../common )
2323 target_link_libraries (ojph_compress_simd PRIVATE openjphsimd )
24- if (TIFF_FOUND)
25- target_link_libraries (ojph_compress_simd PRIVATE openjphsimd TIFF::TIFF )
26- else ()
27- target_link_libraries (ojph_compress_simd PRIVATE openjphsimd )
28- endif ()
2924 install (TARGETS ojph_compress_simd)
3025else ()
3126 if (NOT OJPH_DISABLE_SIMD)
@@ -56,7 +51,7 @@ endif()
5651
5752add_executable (ojph_compress ${SOURCES} )
5853target_include_directories (ojph_compress PRIVATE ../common )
59- if (TIFF_FOUND)
54+ if (TIFF_FOUND AND ( NOT EMSCRIPTEN) )
6055 target_link_libraries (ojph_compress PRIVATE openjph TIFF::TIFF )
6156else ()
6257 target_link_libraries (ojph_compress PRIVATE openjph )
Original file line number Diff line number Diff line change 5454
5555 add_executable (ojph_expand ${SOURCES} )
5656 target_include_directories (ojph_expand PRIVATE ../common )
57- if (TIFF_FOUND)
57+ if (TIFF_FOUND AND ( NOT EMSCRIPTEN) )
5858 target_link_libraries (ojph_expand PRIVATE openjph TIFF::TIFF )
5959 else ()
6060 target_link_libraries (ojph_expand PRIVATE openjph )
You can’t perform that action at this time.
0 commit comments