InstallDeps: Fix broken OSL (would not generate valid default names for its .oso...
[blender.git] / build_files / build_environment / install_deps_patches / osl.patch
1 --- a/src/shaders/CMakeLists.txt
2 +++ b/src/shaders/CMakeLists.txt
3 @@ -27,7 +27,7 @@ macro (osl_compile oslsrc objlist headers)
4          message (STATUS "cmd: ${CMAKE_CURRENT_BINARY_DIR}/../oslc/oslc ${oslsrc}")
5      endif ()
6      add_custom_command (OUTPUT ${osofile}
7 -        COMMAND "${CMAKE_CURRENT_BINARY_DIR}/../oslc/oslc" ${oslsrc}
8 +        COMMAND "${CMAKE_CURRENT_BINARY_DIR}/../oslc/oslc" "-o" ${osofile} ${oslsrc}
9          MAIN_DEPENDENCY ${oslsrc}
10          DEPENDS ${${headers}} ${oslsrc} "${CMAKE_CURRENT_BINARY_DIR}/stdosl.h" "${CMAKE_CURRENT_BINARY_DIR}/../oslc/oslc"
11          WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
12