Skip to content

Commit 3ea494c

Browse files
committed
Add error processing
1 parent 4f0f93c commit 3ea494c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cmake/OpenEXRSetup.cmake

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ set(OPENEXR_OJPH_REPO "https://github.com/palemieux/OpenJPH.git" CACHE STRING "O
309309
set(OPENEXR_OJPH_TAG "add-export" CACHE STRING "OpenJPH Git repo tag")
310310

311311
if (OPENEXR_OJPH_USE_FINDPACKAGE)
312-
find_package(openjph 0.19 REQUIRED)
312+
find_package(openjph 0.19 QUIET)
313313

314314
if(openjph_FOUND)
315315
message(STATUS "Found OpenJPH using find_package.")
@@ -323,6 +323,8 @@ if (OPENEXR_OJPH_USE_FINDPACKAGE)
323323
if(openjph_FOUND)
324324
set(EXR_OPENJPH_LIB PkgConfig::openjph)
325325
message(STATUS "Found OpenJPH using PkgConfig at ${deflate_LINK_LIBRARIES}")
326+
else()
327+
message(ERROR "Failed to find OpenJPH using find_package and PkgConfig.")
326328
endif()
327329
endif()
328330
endif()

0 commit comments

Comments
 (0)