diff options
author | Brecht Van Lommel <brecht@blender.org> | 2020-03-11 15:46:06 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2020-03-11 16:42:46 +0300 |
commit | c4beb518de5382a23a2d1cd7b7688f24b5f36c4d (patch) | |
tree | 218abee1779c299f637a173cbb89ebb37685d94b /intern/cycles/render | |
parent | c8acb6dd6c58c6a85ab18d26f02973437cb2f700 (diff) |
Cycles: disable RTTI only for OSL files, other libraries like OpenVDB need it
This is a bit weak since it's not entirely clear where the boundary is, but
tested to build and pass tests on all platforms.
Diffstat (limited to 'intern/cycles/render')
-rw-r--r-- | intern/cycles/render/CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/intern/cycles/render/CMakeLists.txt b/intern/cycles/render/CMakeLists.txt index 2a077f486fa..6cde52bb89d 100644 --- a/intern/cycles/render/CMakeLists.txt +++ b/intern/cycles/render/CMakeLists.txt @@ -92,6 +92,8 @@ if(WITH_CYCLES_OSL) list(APPEND LIB cycles_kernel_osl ) + + SET_PROPERTY(SOURCE osl.cpp PROPERTY COMPILE_FLAGS ${RTTI_DISABLE_FLAGS}) endif() include_directories(${INC}) |