mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Fix T78065: OSL shader compilation fails on macOS
This commit is contained in:
parent
1012569dfa
commit
421ce37f9c
1 changed files with 2 additions and 1 deletions
|
|
@ -369,8 +369,9 @@ if(WITH_CYCLES_OSL)
|
|||
list(APPEND OSL_LIBRARIES ${OSL_LIB_COMP} -force_load ${OSL_LIB_EXEC} ${OSL_LIB_QUERY})
|
||||
find_path(OSL_INCLUDE_DIR OSL/oslclosure.h PATHS ${CYCLES_OSL}/include)
|
||||
find_program(OSL_COMPILER NAMES oslc PATHS ${CYCLES_OSL}/bin)
|
||||
find_path(OSL_SHADER_DIR NAMES stdosl.h PATHS ${CYCLES_OSL}/shaders)
|
||||
|
||||
if(OSL_INCLUDE_DIR AND OSL_LIBRARIES AND OSL_COMPILER)
|
||||
if(OSL_INCLUDE_DIR AND OSL_LIBRARIES AND OSL_COMPILER AND OSL_SHADER_DIR)
|
||||
set(OSL_FOUND TRUE)
|
||||
else()
|
||||
message(STATUS "OSL not found")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue