diff options
author | Brecht Van Lommel <brecht@blender.org> | 2022-04-07 21:27:23 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2022-04-29 20:03:06 +0300 |
commit | 060a50a5f72a0ccdb754bf155aa2ed394a1bcda5 (patch) | |
tree | 813b0d519df9f4bed79f5e267664204e874db2ee /intern/cycles/scene/CMakeLists.txt | |
parent | 074a8558b7b320d7be78d436ab5473fd5b53ff56 (diff) |
Cycles: refactor Hydra render delegate building
* Leave code for building the render delegate against other applications and
their USD libraries to the Cycles repository, since this is not a great fit.
In the Blender repository, always use Blender's USD libraries now that they
include Hydra support.
* Hide non-USD symbols from the hdCycles shared library, to avoid library
version conflicts.
* Share Apple framework linking between the standalone app and plugin.
* Add cycles_hydra module, to be shared between the standalone app and plugin.
* Bring external libs code in sync with standalone repo, adding various missing
libraries.
* Move some cmake include directories to the top level cycles source folder
because we need to control their global order, to ensure we link against the
correct headers with mixed Blender libraries and external USD libraries.
Diffstat (limited to 'intern/cycles/scene/CMakeLists.txt')
-rw-r--r-- | intern/cycles/scene/CMakeLists.txt | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/intern/cycles/scene/CMakeLists.txt b/intern/cycles/scene/CMakeLists.txt index ddb7ff6f906..4904bf247ba 100644 --- a/intern/cycles/scene/CMakeLists.txt +++ b/intern/cycles/scene/CMakeLists.txt @@ -108,14 +108,13 @@ endif() if(WITH_OPENCOLORIO) add_definitions(-DWITH_OCIO) - include_directories( - SYSTEM + list(APPEND INC_SYS ${OPENCOLORIO_INCLUDE_DIRS} ) list(APPEND LIB ${OPENCOLORIO_LIBRARIES} ) - if(WIN32) + if(WIN32 AND NOT USD_OVERRIDE_OPENCOLORIO) add_definitions(-DOpenColorIO_SKIP_IMPORTS) endif() endif() |