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:
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 /intern/opensubdiv/CMakeLists.txt
parent5c7cdfcb42d0afd781bfbec6e2445678e8f21995 (diff)
OpenSubdiv: Add CMake option to enable -Werror in subsurf code
Diffstat (limited to 'intern/opensubdiv/CMakeLists.txt')
-rw-r--r--intern/opensubdiv/CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/intern/opensubdiv/CMakeLists.txt b/intern/opensubdiv/CMakeLists.txt
index 3f88ba5d662..fceaeb94af9 100644
--- a/intern/opensubdiv/CMakeLists.txt
+++ b/intern/opensubdiv/CMakeLists.txt
@@ -50,6 +50,11 @@ set(SRC
opensubdiv_partitioned.h
)
+if(WITH_SUBSURF_WERROR)
+ ADD_CHECK_C_COMPILER_FLAG(CMAKE_C_FLAGS C_WERROR -Werror)
+ ADD_CHECK_CXX_COMPILER_FLAG(CMAKE_CXX_FLAGS C_WERROR -Werror)
+endif()
+
macro(OPENSUBDIV_DEFINE_COMPONENT component)
if(${${component}})
add_definitions(-D${component})