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
path: root/source
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2015-07-30 11:31:22 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2015-07-30 11:31:22 +0300
commit820d19162678a478bac6a0945e2111b11bbea91e (patch)
treeaa69ad00d4bb1bb6f9673eb9df9916a3ad90900a /source
parent5c7cdfcb42d0afd781bfbec6e2445678e8f21995 (diff)
OpenSubdiv: Add CMake option to enable -Werror in subsurf code
Diffstat (limited to 'source')
-rw-r--r--source/blender/blenkernel/CMakeLists.txt10
1 files changed, 10 insertions, 0 deletions
diff --git a/source/blender/blenkernel/CMakeLists.txt b/source/blender/blenkernel/CMakeLists.txt
index f0d6cfb7e1c..5a3fb492762 100644
--- a/source/blender/blenkernel/CMakeLists.txt
+++ b/source/blender/blenkernel/CMakeLists.txt
@@ -505,6 +505,16 @@ if(WITH_OPENSUBDIV)
../../../intern/opensubdiv
${OPENSUBDIV_INCLUDE_DIRS}
)
+ if(WITH_SUBSURF_WERROR)
+ if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID MATCHES "Clang")
+ set_source_files_properties(intern/CCGSubSurf.c
+ intern/CCGSubSurf_legacy.c
+ intern/CCGSubSurf_opensubdiv.c
+ intern/CCGSubSurf_opensubdiv_converter.c
+ intern/CCGSubSurf_util.c
+ PROPERTIES COMPILE_FLAGS -Werror)
+ endif()
+ endif()
endif()
## Warnings as errors, this is too strict!