...
 
Commits (1)
......@@ -17,7 +17,6 @@ function(add_dune_vc_flags _targets)
if(Vc_FOUND)
foreach(_target ${_targets})
target_link_libraries(${_target} ${Vc_LIBRARIES})
target_compile_options(${_target} PUBLIC ${Vc_COMPILE_FLAGS})
target_compile_definitions(${_target} PUBLIC ENABLE_VC=1)
target_include_directories(${_target} SYSTEM PUBLIC ${Vc_INCLUDE_DIR})
endforeach(_target ${_targets})
......@@ -25,7 +24,7 @@ function(add_dune_vc_flags _targets)
endfunction(add_dune_vc_flags)
if(Vc_FOUND)
dune_register_package_flags(COMPILE_OPTIONS "${Vc_COMPILE_FLAGS};-DENABLE_VC=1"
dune_register_package_flags(COMPILE_OPTIONS "-DENABLE_VC=1"
LIBRARIES "${Vc_LIBRARIES}"
INCLUDE_DIRS "${Vc_INCLUDE_DIR}")
endif(Vc_FOUND)
......