diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-05-03 01:22:14 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-05-03 01:31:46 +0400 |
commit | 8d16869d833ea2a2bd548c8f7b767dae582c78f2 (patch) | |
tree | 8b4dac3292c5cb5c1c37211150633e6968814bc9 /intern/cycles/CMakeLists.txt | |
parent | 43d5e54a799b6823bca31bde17606c591b81d8be (diff) |
Code cleanup: Add -Werror=float-conversion to Cycles
Diffstat (limited to 'intern/cycles/CMakeLists.txt')
-rw-r--r-- | intern/cycles/CMakeLists.txt | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/intern/cycles/CMakeLists.txt b/intern/cycles/CMakeLists.txt index 0d13c4b61d9..50fd1950494 100644 --- a/intern/cycles/CMakeLists.txt +++ b/intern/cycles/CMakeLists.txt @@ -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) |