Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Matena <lukasmatena@seznam.cz>2019-10-15 16:10:52 +0300
committerLukas Matena <lukasmatena@seznam.cz>2019-10-15 16:10:52 +0300
commit50448bf4dd178ce60b0e18aa2388ce29614715dc (patch)
treecc1630b13e1f82ec1c7b24891112e73e280d6913 /CMakeLists.txt
parentc99e7cb0dfac109989f641313255904f493c7153 (diff)
CMakeLists.txt: turning off Wno-ignored-attributes on GCC and Clang again
Eigen still produces tons of those warnings on newer gcc
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt7
1 files changed, 4 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7b1d73f89..3efc18b8e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -174,9 +174,10 @@ if (NOT MSVC AND ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU" OR "${CMAKE_CXX_COMP
add_compile_options(-Werror=return-type)
#removes LOTS of extraneous Eigen warnings (GCC only supports it since 6.1)
- #if("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang" OR CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 6.1)
- # add_compile_options(-Wno-ignored-attributes) # Tamas: Eigen include dirs are marked as SYSTEM
- #endif()
+ #https://eigen.tuxfamily.org/bz/show_bug.cgi?id=1221
+ if("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang" OR CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 6.1)
+ add_compile_options(-Wno-ignored-attributes)
+ endif()
#GCC generates loads of -Wunknown-pragmas when compiling igl. The fix is not easy due to a bug in gcc, see
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66943 or