Skip to content

Commit 30603e5

Browse files
committed
Remove libtiff from emcc support
1 parent 8b1c7e6 commit 30603e5

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

src/apps/ojph_compress/CMakeLists.txt

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff 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)
3025
else()
3126
if (NOT OJPH_DISABLE_SIMD)
@@ -56,7 +51,7 @@ endif()
5651

5752
add_executable(ojph_compress ${SOURCES})
5853
target_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)
6156
else()
6257
target_link_libraries(ojph_compress PRIVATE openjph)

src/apps/ojph_expand/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ else()
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)

0 commit comments

Comments
 (0)