Commit 49cb2f53 authored by Jö Fahlke's avatar Jö Fahlke

Avoid any use of Vc-detected CXX flags

Addresses: docker/ci#9 (comment 56350)
parent c0bbf1a5
Pipeline #19030 passed with stage
in 5 minutes and 52 seconds
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment