From d0b31bb56b57b6340240d63ab047d17648d2830d Mon Sep 17 00:00:00 2001
From: Bertrand Bellenot <bertrand.bellenot@cern.ch>
Date: Tue, 17 Sep 2019 08:52:35 +0200
Subject: [PATCH] Fix build of llvm in Release mode for multi-configuration
 generators (Visual Studio and Xcode)

---
 interpreter/CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/interpreter/CMakeLists.txt b/interpreter/CMakeLists.txt
index 5f563446710..97e002ab860 100644
--- a/interpreter/CMakeLists.txt
+++ b/interpreter/CMakeLists.txt
@@ -155,7 +155,7 @@ if(builtin_llvm)
   # in that case we set the flags for all configurations to the
   # flags of the build type assigned to LLVM_BUILD_TYPE.
 
-  if(GENERATOR_IS_MULTI_CONFIG)
+  if(MSVC OR XCODE)
     string(TOUPPER ${LLVM_BUILD_TYPE} LLVM_BUILD_TYPE)
     set(LLVM_C_FLAGS ${CMAKE_C_FLAGS_${LLVM_BUILD_TYPE}})
     set(LLVM_CXX_FLAGS ${CMAKE_CXX_FLAGS_${LLVM_BUILD_TYPE}})
-- 
GitLab