Skip to content

Commit af38a02

Browse files
committed
Improve error reporting
1 parent 3ea494c commit af38a02

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cmake/OpenEXRSetup.cmake

+3-2
Original file line numberDiff line numberDiff line change
@@ -323,8 +323,6 @@ 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.")
328326
endif()
329327
endif()
330328
endif()
@@ -354,6 +352,9 @@ else()
354352
message(STATUS "Building OpenJPH from ${OPENEXR_OJPH_REPO}.")
355353
endif()
356354

355+
if (NOT EXR_OPENJPH_LIB)
356+
message(ERROR "Failed to find OpenJPH.")
357+
endif()
357358

358359
#######################################
359360
# Find or install Imath

0 commit comments

Comments
 (0)