From cd809309f72e3193518ffaf01550126884d5a16e Mon Sep 17 00:00:00 2001 From: Varun Agrawal Date: Mon, 23 Mar 2020 08:04:17 -0400 Subject: [PATCH] suppress warning only on linux for now, need to figure out for other OSes --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 42ebe7ea4..be556d27e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -417,7 +417,9 @@ add_subdirectory(CppUnitLite) 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") + if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-misleading-indentation") + endif() endif(GTSAM_BUILD_WRAP) # Build GTSAM library