suppress warning only on linux for now, need to figure out for other OSes

release/4.3a0
Varun Agrawal 2020-03-23 08:04:17 -04:00
parent 0479223b3f
commit cd809309f7
1 changed files with 3 additions and 1 deletions

View File

@ -417,7 +417,9 @@ add_subdirectory(CppUnitLite)
if (GTSAM_BUILD_WRAP) if (GTSAM_BUILD_WRAP)
add_subdirectory(wrap) add_subdirectory(wrap)
# suppress warning of cython line being too long # suppress warning of cython line being too long
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-misleading-indentation") if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-misleading-indentation")
endif()
endif(GTSAM_BUILD_WRAP) endif(GTSAM_BUILD_WRAP)
# Build GTSAM library # Build GTSAM library