Skip to content

Commit 5e8c66d

Browse files
committed
Add dependency on libjpeg to nxextract
Previously nxextract could only be compiled when HDF4 support was enabled, as HDF4 linked JPEG into the NeXus library.
1 parent 3a6400d commit 5e8c66d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

contrib/applications/NXextract/src/CMakeLists.txt

+3-1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
#
2525
#=============================================================================
2626

27+
find_package(JPEG REQUIRED)
28+
2729
set(SOURCE extractorapp.cpp
2830
extractor.cpp
2931
templateparsor.cpp
@@ -49,5 +51,5 @@ set(SOURCE extractorapp.cpp
4951
variant.cpp)
5052

5153
add_executable(nxextract ${SOURCE})
52-
target_link_libraries(nxextract NeXus_Shared_Library)
54+
target_link_libraries(nxextract NeXus_Shared_Library jpeg)
5355

0 commit comments

Comments
 (0)