Skip to content

Commit

Permalink
improve CMake status messages (ampas#169)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeldsmith authored Jan 4, 2025
1 parent 7d4597a commit c2b4af5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,14 @@ if(TARGET ZLIB::ZLIB)
message( STATUS " ZLIB_LIBRARY : ${ZLIB_LIBRARY}" )
else()
message( STATUS "ZLIB was not found")
message( STAUTS " ZLIB is automatically linked when using OpenEXR 3.x but CTL needs to link to ZLIB if using OpenEXR 2.x" )
message( STATUS " ZLIB is automatically linked when using OpenEXR 3.x but CTL needs to link to ZLIB if using OpenEXR 2.x" )
endif()

find_package(OpenEXR 3 CONFIG QUIET)
if(OpenEXR_FOUND)
message(STATUS "Found OpenEXR ${OpenEXR_VERSION}")
else()
message(STATUS "OpenEXR v3 not found, looking for IlmBase and OpenEXR v2")
find_package(IlmBase REQUIRED)
find_package(OpenEXR 2 REQUIRED)
endif()
Expand Down

0 comments on commit c2b4af5

Please sign in to comment.