From 2c4d1292169dd6eda3474b0ffe2a574015423d91 Mon Sep 17 00:00:00 2001 From: Miikka Vaisala Date: Thu, 4 Jul 2019 11:25:04 +0800 Subject: [PATCH] -Werror-all disabled from Intel compiler flags Because produces cryptical messages preventing compilation. The messages do not tell anything about the problem and are also at odds with some gcc specific pragma commands. If we can resolve these issues, we can turn it back. --- CMakeLists.txt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 37225d5..222cecc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -130,8 +130,11 @@ set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG}\ if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") set (CXX_FLAGS_WARNING "-Wall -Wextra -Werror")# -Wdouble-promotion -Wfloat-conversion") -elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Intel") - set (CXX_FLAGS_WARNING "-Wall -Wextra -Werror-all -Wsign-conversion") +elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Intel")\ + #MV: -Werror-all disabled because produces cryptical messages preventing compilation. + #TODO: Would be good to find an optimal set of warning flags. + #set (CXX_FLAGS_WARNING "-Wall -Wextra -Werror-all -Wsign-conversion") + set (CXX_FLAGS_WARNING "-Wall -Wextra -Wsign-conversion") else() message(WARNING "Using an unknown compiler. Compilation warning flags were not set.") endif()