Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/kernel/osl/CMakeLists.txt
| Show First 20 Lines • Show All 49 Lines • ▼ Show 20 Lines | |||||
| # OSL and LLVM are built without RTTI | # OSL and LLVM are built without RTTI | ||||
| string(APPEND CMAKE_CXX_FLAGS " ${RTTI_DISABLE_FLAGS}") | string(APPEND CMAKE_CXX_FLAGS " ${RTTI_DISABLE_FLAGS}") | ||||
| if(APPLE) | if(APPLE) | ||||
| # Disable allocation warning on macOS prior to 10.14: the OSLRenderServices | # Disable allocation warning on macOS prior to 10.14: the OSLRenderServices | ||||
| # contains member which is 64 bytes aligned (cache inside of OIIO's | # contains member which is 64 bytes aligned (cache inside of OIIO's | ||||
| # unordered_map_concurrent). This is not something what the SDK supportsm, but | # unordered_map_concurrent). This is not something what the SDK supportsm, but | ||||
| # since we take care of allocations ourselves is is OK to ignore the | # since we take care of allocations ourselves is OK to ignore the | ||||
| # diagnostic message. | # diagnostic message. | ||||
| string(APPEND CMAKE_CXX_FLAGS " -faligned-allocation") | string(APPEND CMAKE_CXX_FLAGS " -faligned-allocation") | ||||
| endif() | endif() | ||||
| include_directories(${INC}) | include_directories(${INC}) | ||||
| include_directories(SYSTEM ${INC_SYS}) | include_directories(SYSTEM ${INC_SYS}) | ||||
| cycles_add_library(cycles_kernel_osl "${LIB}" ${SRC} ${HEADER_SRC}) | cycles_add_library(cycles_kernel_osl "${LIB}" ${SRC} ${HEADER_SRC}) | ||||