diff --git a/CMakeLists.txt b/CMakeLists.txt index 6ac85bff6..42ebe7ea4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -416,6 +416,8 @@ add_subdirectory(CppUnitLite) # Build wrap if (GTSAM_BUILD_WRAP) add_subdirectory(wrap) + # suppress warning of cython line being too long + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-misleading-indentation") endif(GTSAM_BUILD_WRAP) # Build GTSAM library