Build: Improve OSL library dependency handling in Cycles
Might fix some missing symbols when the OSL library gets updated. Pull Request: https://projects.blender.org/blender/blender/pulls/119391
This commit is contained in:
committed by
Brecht Van Lommel
parent
36b137996e
commit
810bfcc30a
@@ -224,10 +224,6 @@ endif()
|
||||
|
||||
if(WITH_CYCLES_OSL)
|
||||
add_definitions(-DWITH_OSL)
|
||||
# osl 1.9.x
|
||||
add_definitions(-DOSL_STATIC_BUILD)
|
||||
# pre 1.9
|
||||
add_definitions(-DOSL_STATIC_LIBRARY)
|
||||
include_directories(
|
||||
SYSTEM
|
||||
${OSL_INCLUDE_DIR}
|
||||
|
||||
@@ -142,6 +142,12 @@ if(WITH_OPENIMAGEDENOISE)
|
||||
)
|
||||
endif()
|
||||
|
||||
if(WITH_CYCLES_OSL)
|
||||
list(APPEND LIB
|
||||
${OSL_LIBRARIES}
|
||||
)
|
||||
endif()
|
||||
|
||||
blender_add_lib(bf_intern_cycles "${SRC}" "${INC}" "${INC_SYS}" "${LIB}")
|
||||
|
||||
add_dependencies(bf_intern_cycles bf_rna)
|
||||
|
||||
@@ -203,6 +203,13 @@ if(WITH_OPENIMAGEDENOISE)
|
||||
)
|
||||
endif()
|
||||
|
||||
if(WITH_CYCLES_OSL)
|
||||
list(APPEND LIB
|
||||
${OSL_LIBRARIES}
|
||||
)
|
||||
endif()
|
||||
|
||||
|
||||
include_directories(${INC})
|
||||
include_directories(SYSTEM ${INC_SYS})
|
||||
|
||||
|
||||
@@ -107,6 +107,7 @@ endif()
|
||||
if(WITH_CYCLES_OSL)
|
||||
list(APPEND LIB
|
||||
cycles_kernel_osl
|
||||
${OSL_LIBRARIES}
|
||||
)
|
||||
endif()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user