diff options
author | Cedric Nugteren <web@cedricnugteren.nl> | 2016-09-13 17:58:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-13 17:58:12 +0200 |
commit | d7305346ca32db32d3fd287b59bba5d38a6060bf (patch) | |
tree | 251f39d4d996d64d601e95d200e04fc508e3a357 | |
parent | 4ce584a01404055fdb23f78b4ac359394b559ea1 (diff) | |
parent | 9095537a6a5199e2dc3824381481af790d4e8f27 (diff) |
Merge pull request #98 from intelfx/no-ignored-attributes
CMakeLists.txt: use -Wno-ignored-attributes to silence unfixable warnings
-rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 7393c6e7..c10f66a3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -75,6 +75,12 @@ else() if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.9.0) set(FLAGS "${FLAGS} -Wno-attributes -Wno-unused-variable") endif() + if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 6.0.0) + # GCC does not support attributes on template arguments + # in particular we hit this with the alignment attributes on cl_XXX types + # which are then used to instantiate various templates in CLBlast + set(FLAGS "${FLAGS} -Wno-ignored-attributes") + endif() elseif(CMAKE_CXX_COMPILER_ID MATCHES Clang) set(FLAGS "${FLAGS} -Wextra -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-padded") set(FLAGS "${FLAGS} -Wno-missing-prototypes -Wno-float-equal -Wno-switch-enum -Wno-switch") |