diff options
Diffstat (limited to 'intern/cycles/CMakeLists.txt')
-rw-r--r-- | intern/cycles/CMakeLists.txt | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/intern/cycles/CMakeLists.txt b/intern/cycles/CMakeLists.txt index 0d13c4b61d9..a1b0030491e 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,14 @@ include_directories( ${OPENEXR_INCLUDE_DIRS} ) + +# Warnings +if(CMAKE_COMPILER_IS_GNUCXX) + ADD_CHECK_CXX_COMPILER_FLAG(CMAKE_CXX_FLAGS _has_cxxflag_float_conversion "-Werror=float-conversion") + unset(_has_cxxflag_float_conversion) +endif() + + # Subdirectories if(WITH_CYCLES_BLENDER) |