Commit 0cdc036f authored by vijaysm's avatar vijaysm

Add some flags to disable warnings about ignored attributes in templated code...

Add some flags to disable warnings about ignored attributes in templated code and about deprecated declarations. This is mostly to remove numerous warnings in the Eigen header includes
parent 51bcc028
......@@ -31,6 +31,8 @@ if ( CMAKE_COMPILER_IS_GNUCXX OR (CMAKE_CXX_COMPILER_ID MATCHES "Clang") )
FORCE_ADD_FLAGS(CMAKE_C_FLAGS "${MOAB_CXX_FLAGS}")
FORCE_ADD_FLAGS(CMAKE_Fortran_FLAGS "${MOAB_CXX_FLAGS}")
ENABLE_IF_SUPPORTED(MOAB_CXX_FLAGS "-fpermissive")
ENABLE_IF_SUPPORTED(MOAB_CXX_FLAGS "-Wno-ignored-attributes")
ENABLE_IF_SUPPORTED(MOAB_CXX_FLAGS "-Wno-deprecated-declarations")
# Need to enable or check for this only if user asks for C++11 support
# ENABLE_IF_SUPPORTED(MOAB_CXX_FLAGS "-Wno-c++11-long-long")
if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 4.8)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment