Code cleanup: Add -Werror=float-conversion to Cycles

This commit is contained in:
Campbell Barton
2014-05-03 07:22:14 +10:00
parent 43d5e54a79
commit 8d16869d83
21 changed files with 106 additions and 96 deletions

View File

@@ -1,4 +1,3 @@
# Standalone or with Blender
if(NOT WITH_BLENDER AND WITH_CYCLES_STANDALONE)
set(CYCLES_INSTALL_PATH "")
@@ -127,6 +126,13 @@ include_directories(
${OPENEXR_INCLUDE_DIRS}
)
# Warnings
if(CMAKE_COMPILER_IS_GNUCC)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror=float-conversion")
endif()
# Subdirectories
if(WITH_CYCLES_BLENDER)