Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Bakker <jbakker>2022-07-11 17:12:27 +0300
committerJeroen Bakker <jeroen@blender.org>2022-07-11 17:12:36 +0300
commit76d86142367e0eb67e7a423ae5a4884bbd21d6ac (patch)
tree16ce45f2a8b10518a2f69970b02fbd93b1eb9248 /CMakeLists.txt
parent6e426259b4de01598df564e5998043f5db43f1de (diff)
GPU: Do not allow GPU Shader builder when USD is enabled.
Linking GPU shader builder requires stubs for many functions of the USD library. We don't want to rely on other modules to update the stubs for a tool that is only used by GPU developers. This patch raises an error when both WITH_GPU_SHADER_BUILDER and WITH_USD are enabled. This reduces the maintenance of updating the stubs when USD API changes. Reviewed By: LazyDodo Differential Revision: https://developer.blender.org/D15422
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1416b5b4189..22f31d6af48 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1340,6 +1340,12 @@ else()
list(APPEND GL_DEFINITIONS -DWITH_GL_PROFILE_CORE)
endif()
+if (WITH_GPU_SHADER_BUILDER AND WITH_USD)
+ message(FATAL_ERROR
+ "Unable to compile WITH_GPU_SHADER_BUILDER and WITH_USD."
+ )
+endif()
+
#-----------------------------------------------------------------------------
# Configure Metal.
if (WITH_METAL_BACKEND)