/usr/share/dune/cmake/modules/AddVcFlags.cmake is in libdune-common-dev 2.5.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | # Defines the functions to use Vc
#
# Vc is a library for high-level Vectorization support in C++
# see https://github.com/VcDevel/Vc
#
# .. cmake_function:: add_dune_vc_flags
#
# .. cmake_param:: targets
# :positional:
# :single:
# :required:
#
# A list of targets to use VC with.
#
function(add_dune_vc_flags _targets)
if(Vc_FOUND)
foreach(_target ${_targets})
target_link_libraries(${_target} ${Vc_LIBRARIES})
target_compile_options(${_target} PUBLIC ${Vc_ALL_FLAGS})
target_include_directories(${_target} SYSTEM PUBLIC ${Vc_INCLUDE_DIR})
endforeach(_target ${_targets})
endif(Vc_FOUND)
endfunction(add_dune_vc_flags)
if(Vc_FOUND)
dune_register_package_flags(COMPILE_OPTIONS "${Vc_ALL_FLAGS}"
LIBRARIES "${Vc_LIBRARIES}"
INCLUDE_DIRS "${Vc_INCLUDE_DIR}")
endif(Vc_FOUND)
set(HAVE_VC ${Vc_FOUND})
|