Skip to content
Snippets Groups Projects
Commit eb84dbc0 authored by Guilherme Amadio's avatar Guilherme Amadio
Browse files

[VecOps] Do not use unknown options for MSVC compiler

parent 4b70e649
No related branches found
No related tags found
No related merge requests found
...@@ -29,11 +29,13 @@ elseif(vdt) ...@@ -29,11 +29,13 @@ elseif(vdt)
target_include_directories(ROOTVecOps PUBLIC ${VDT_INCLUDE_DIRS}) target_include_directories(ROOTVecOps PUBLIC ${VDT_INCLUDE_DIRS})
endif() endif()
target_compile_options(ROOTVecOps PRIVATE -O3 -ffast-math) if(NOT MSVC)
target_compile_options(ROOTVecOps PRIVATE -O3 -ffast-math)
endif()
include(CheckCXXSymbolExists) include(CheckCXXSymbolExists)
check_symbol_exists(m __sqrt_finite HAVE_FINITE_MATH) 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) target_compile_options(ROOTVecOps PRIVATE -fno-finite-math-only)
endif() endif()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment