diff --git a/CMakeLists.txt b/CMakeLists.txt index c9ade9be5108a99f84175f60c8802681c790aeff..4447e9b8dc796fbd315632bdae813140c427b57e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -20,6 +20,8 @@ SET(CMAKE_VERBOSE_MAKEFILE True) project(${PROJECT_NAME}) SETUP_PROJECT() +STRING(REPLACE "-pedantic" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS}) +MESSAGE(STATUS "CFLAGS = "${CMAKE_CXX_FLAGS}) # ---------------------------------------------------- # --- DEPENDANCIES ----------------------------------- diff --git a/src/details.hpp b/src/details.hpp index 3b71439742eda7016202d15333ae8090448c3b1f..cd16d8f4ea1a1f4e35b824fdbe4b489a0a5fb492 100644 --- a/src/details.hpp +++ b/src/details.hpp @@ -19,6 +19,8 @@ #include <Eigen/Core> #include <boost/python.hpp> + +#pragma GCC diagnostic error "-pedantic" // Alas only work for g++ 4.8 #include <numpy/arrayobject.h> #include <iostream>