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

Don't accept Vc versions <1.4.1 with Clang versions >=7

Close: #132
parent 673679d0
Branches
Tags
1 merge request!591Don't accept Vc versions <1.4.1 with Clang versions >=7
Pipeline #15229 failed
......@@ -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
(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 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