CMake: disable OSL if cycles is disabled

This commit is contained in:
Campbell Barton 2015-06-14 09:50:33 +10:00 committed by Sergey Sharybin
parent 30add95104
commit c691ab1572
1 changed files with 2 additions and 0 deletions

View File

@ -659,6 +659,8 @@ if(WITH_CYCLES)
if(WITH_CYCLES_OSL)
set(WITH_LLVM ON CACHE BOOL "" FORCE)
endif()
else()
set(WITH_CYCLES_OSL OFF)
endif()
# auto enable openimageio linking dependencies