CMake: disable OSL if its not found

This commit is contained in:
Campbell Barton
2014-11-21 13:07:18 +01:00
parent e6e78a143e
commit 62e9435dbc

View File

@@ -1073,11 +1073,9 @@ if(UNIX AND NOT APPLE)
if(OSL_INCLUDES AND OSL_LIBRARIES AND OSL_COMPILER)
set(OSL_FOUND TRUE)
message(STATUS "OSL includes = ${OSL_INCLUDES}")
message(STATUS "OSL library = ${OSL_LIBRARIES}")
message(STATUS "OSL compiler = ${OSL_COMPILER}")
else()
message(STATUS "OSL not found")
set(WITH_CYCLES_OSL OFF)
endif()
endif()
@@ -1752,6 +1750,7 @@ elseif(WIN32)
set(OSL_FOUND TRUE)
else()
message(STATUS "OSL not found")
set(WITH_CYCLES_OSL OFF)
endif()
endif()
@@ -2045,6 +2044,7 @@ elseif(APPLE)
set(OSL_FOUND TRUE)
else()
message(STATUS "OSL not found")
set(WITH_CYCLES_OSL OFF)
endif()
endif()