File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed
Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,12 @@ set (libuhdr_GIT_TAG "v${libuhdr_BUILD_VERSION}")
1313set_cache (libuhdr_BUILD_SHARED_LIBS OFF
1414 DOC "Should execute a local libuhdr build, if necessary, build shared libraries" ADVANCED )
1515
16+ find_package (JPEG REQUIRED)
17+ message ("[libuhdr] JPEG_FOUND=${JPEG_FOUND} " )
18+ message ("[libuhdr] JPEG_INCLUDE_DIRS=${JPEG_INCLUDE_DIRS} " )
19+ message ("[libuhdr] JPEG_LIBRARIES=${JPEG_LIBRARIES} " )
20+ message ("[libuhdr] JPEG_VERSION=${JPEG_VERSION} " )
21+
1622build_dependency_with_cmake(libuhdr
1723 VERSION ${libuhdr_BUILD_VERSION}
1824 GIT_REPOSITORY ${libuhdr_GIT_REPOSITORY}
@@ -22,7 +28,9 @@ build_dependency_with_cmake(libuhdr
2228 -D CMAKE_INSTALL_LIBDIR=lib
2329 -D CMAKE_POSITION_INDEPENDENT_CODE =ON
2430 -D UHDR_BUILD_EXAMPLES=FALSE
31+ -D UHDR_BUILD_DEPS=FALSE
2532 -D UHDR_ENABLE_LOGS=TRUE
33+ #-D JPEG_ROOT=${libjpeg-turbo_ROOT}
2634 )
2735
2836if (WIN32 )
Original file line number Diff line number Diff line change 44
55if (libuhdr_FOUND)
66 set (UHDR_DEFS USE_UHDR)
7+ else ()
8+ set (LIBUHDR_INCLUDE_DIR "" )
9+ set (LIBUHDR_LIBRARY "" )
10+ set (UHDR_DEFS "" )
711endif ()
812
913add_oiio_plugin (jpeginput.cpp jpegoutput.cpp
@@ -12,5 +16,5 @@ add_oiio_plugin (jpeginput.cpp jpegoutput.cpp
1216 $<TARGET_NAME_IF_EXISTS:libjpeg-turbo::jpeg>
1317 $<TARGET_NAME_IF_EXISTS:JPEG::JPEG>
1418 ${LIBUHDR_LIBRARY}
15- DEFINITIONS ${UHDR_DEFS}
19+ DEFINITIONS " ${UHDR_DEFS} "
1620 )
You can’t perform that action at this time.
0 commit comments