Skip to content

Commit

Permalink
Improve error reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
palemieux committed Jan 30, 2025
1 parent 3ea494c commit af38a02
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cmake/OpenEXRSetup.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -323,8 +323,6 @@ if (OPENEXR_OJPH_USE_FINDPACKAGE)
if(openjph_FOUND)
set(EXR_OPENJPH_LIB PkgConfig::openjph)
message(STATUS "Found OpenJPH using PkgConfig at ${deflate_LINK_LIBRARIES}")
else()
message(ERROR "Failed to find OpenJPH using find_package and PkgConfig.")
endif()
endif()
endif()
Expand Down Expand Up @@ -354,6 +352,9 @@ else()
message(STATUS "Building OpenJPH from ${OPENEXR_OJPH_REPO}.")
endif()

if (NOT EXR_OPENJPH_LIB)
message(ERROR "Failed to find OpenJPH.")
endif()

#######################################
# Find or install Imath
Expand Down

0 comments on commit af38a02

Please sign in to comment.