diff options
-rw-r--r-- | intern/cycles/CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/intern/cycles/CMakeLists.txt b/intern/cycles/CMakeLists.txt index 1500743763b..64fe70c886d 100644 --- a/intern/cycles/CMakeLists.txt +++ b/intern/cycles/CMakeLists.txt @@ -341,6 +341,9 @@ if(CMAKE_COMPILER_IS_GNUCXX) unset(_has_cxxflag_float_conversion) unset(_has_cxxflag_double_promotion) unset(_has_no_error_unused_macros) +elseif(CMAKE_C_COMPILER_ID MATCHES "Clang") + ADD_CHECK_CXX_COMPILER_FLAG(CMAKE_CXX_FLAGS _has_cxxflag_implicit_float_conversion "-Werror=implicit-float-conversion") + unset(_has_cxxflag_implicit_float_conversion) endif() if(WITH_CYCLES_CUDA_BINARIES AND (NOT WITH_CYCLES_CUBIN_COMPILER)) |