Skip to content
Snippets Groups Projects
Commit ef835c4b authored by Jö Fahlke's avatar Jö Fahlke
Browse files

[!591] Don't accept Vc versions <1.4.1 with Clang versions >=7

Merge branch 'minimum-vc-version-on-clang7+' into 'master'

ref:core/dune-common Close: [#132]

See merge request [!591]

  [#132]: gitlab.dune-project.org/NoneNone/issues/132
  [!591]: gitlab.dune-project.org/core/dune-common/merge_requests/591


Closes #132
parents 673679d0 f620ff40
Branches
Tags
1 merge request!591Don't accept Vc versions <1.4.1 with Clang versions >=7
Pipeline #15231 passed
......@@ -36,7 +36,13 @@ include(FindMProtect)
find_package(TBB OPTIONAL_COMPONENTS cpf allocator)
# try to find the Vc library
find_package(Vc NO_MODULE)
set(MINIMUM_VC_VERSION)
if((CMAKE_CXX_COMPILER_ID STREQUAL Clang) AND
(NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 7))
message("Raising minimum acceptable Vc version to 1.4.1 due to use of Clang 7 (or later), see https://gitlab.dune-project.org/core/dune-common/issues/132")
set(MINIMUM_VC_VERSION 1.4.1)
endif()
find_package(Vc ${MINIMUM_VC_VERSION} NO_MODULE)
include(AddVcFlags)
# text for feature summary
set_package_properties("Vc" PROPERTIES
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment