Skip to content

Commit de5ace1

Browse files
committed
Update CMakeLists.txt
1 parent bc9e6d9 commit de5ace1

1 file changed

Lines changed: 21 additions & 3 deletions

File tree

src/imiv/CMakeLists.txt

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -595,10 +595,16 @@ if (_imiv_renderer_is_vulkan)
595595
endif ()
596596
elseif (_imiv_renderer_is_metal)
597597
set (_imiv_has_runtime_glslang OFF)
598+
record_build_dependency (
599+
Vulkan NOTFOUND
600+
NOT_FOUND_EXPLANATION
601+
"(not required on Metal backend; select OIIO_IMIV_RENDERER=vulkan to check MoltenVK/Vulkan support)")
598602
record_build_dependency (
599603
GLSLANG_RUNTIME NOTFOUND
600604
NOT_FOUND_EXPLANATION
601-
"(runtime shader compilation disabled on Metal backend)")
605+
"(runtime shader compilation not checked on Metal backend; only required for Vulkan runtime OCIO shaders)")
606+
message (STATUS
607+
"imiv: skipping Vulkan runtime shader tool discovery on Metal backend")
602608
find_library (OIIO_IMIV_COCOA_FRAMEWORK Cocoa)
603609
find_library (OIIO_IMIV_METAL_FRAMEWORK Metal)
604610
find_library (OIIO_IMIV_QUARTZCORE_FRAMEWORK QuartzCore)
@@ -615,10 +621,16 @@ elseif (_imiv_renderer_is_metal)
615621
${OIIO_IMIV_QUARTZCORE_FRAMEWORK})
616622
elseif (_imiv_renderer_is_opengl)
617623
set (_imiv_has_runtime_glslang OFF)
624+
record_build_dependency (
625+
Vulkan NOTFOUND
626+
NOT_FOUND_EXPLANATION
627+
"(not required on OpenGL backend; select OIIO_IMIV_RENDERER=vulkan to check Vulkan support)")
618628
record_build_dependency (
619629
GLSLANG_RUNTIME NOTFOUND
620630
NOT_FOUND_EXPLANATION
621-
"(runtime shader compilation disabled on OpenGL backend)")
631+
"(runtime shader compilation not checked on OpenGL backend; only required for Vulkan runtime OCIO shaders)")
632+
message (STATUS
633+
"imiv: skipping Vulkan runtime shader tool discovery on OpenGL backend")
622634
find_package (OpenGL QUIET)
623635
if (TARGET OpenGL::GL)
624636
list (APPEND _imiv_link_libs OpenGL::GL)
@@ -631,10 +643,16 @@ elseif (_imiv_renderer_is_opengl)
631643
endif ()
632644
else ()
633645
set (_imiv_has_runtime_glslang OFF)
646+
record_build_dependency (
647+
Vulkan NOTFOUND
648+
NOT_FOUND_EXPLANATION
649+
"(not required on selected backend)")
634650
record_build_dependency (
635651
GLSLANG_RUNTIME NOTFOUND
636652
NOT_FOUND_EXPLANATION
637-
"(runtime shader compilation disabled on selected backend)")
653+
"(runtime shader compilation not checked on selected backend)")
654+
message (STATUS
655+
"imiv: skipping Vulkan runtime shader tool discovery on selected backend")
638656
endif ()
639657

640658
if (MSVC)

0 commit comments

Comments
 (0)