From eb84dbc0be48e1a8cd45b3bc5215958a74629ed4 Mon Sep 17 00:00:00 2001
From: Guilherme Amadio <amadio@cern.ch>
Date: Fri, 7 Dec 2018 11:18:42 +0100
Subject: [PATCH] [VecOps] Do not use unknown options for MSVC compiler

---
 math/vecops/CMakeLists.txt | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/math/vecops/CMakeLists.txt b/math/vecops/CMakeLists.txt
index 962a6979c3f..1bbb8422af9 100644
--- a/math/vecops/CMakeLists.txt
+++ b/math/vecops/CMakeLists.txt
@@ -29,11 +29,13 @@ elseif(vdt)
   target_include_directories(ROOTVecOps PUBLIC ${VDT_INCLUDE_DIRS})
 endif()
 
-target_compile_options(ROOTVecOps PRIVATE -O3 -ffast-math)
+if(NOT MSVC)
+  target_compile_options(ROOTVecOps PRIVATE -O3 -ffast-math)
+endif()
 
 include(CheckCXXSymbolExists)
 check_symbol_exists(m __sqrt_finite HAVE_FINITE_MATH)
-if(NOT HAVE_FINITE_MATH)
+if(NOT HAVE_FINITE_MATH AND NOT MSVC)
   target_compile_options(ROOTVecOps PRIVATE -fno-finite-math-only)
 endif()
 
-- 
GitLab