From db0406ae14442b2f4a59430c650d8c50a7e7672f Mon Sep 17 00:00:00 2001
From: bramas <berenger.bramas@inria.fr>
Date: Thu, 4 Sep 2014 13:23:22 +0200
Subject: [PATCH] Remove the test of NULL pointer when MPI is enabled because
 it shows warnings from the MPI lib

---
 CMakeLists.txt | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index d19c1b840..7bc37eaec 100755
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -95,7 +95,9 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "Intel")
     #-Wshadow -Wpointer-arith -Wcast-qual -Wconversion  -Wall -Wnosign-conversion ")
 else()
     # NOT      INTEL
-    SET(ScaLFMM_CXX_FLAGS  "${ScaLFMM_CXX_FLAGS}   -Wzero-as-null-pointer-constant") 
+    if(NOT ${ScalFMM_USE_MPI})
+        SET(ScaLFMM_CXX_FLAGS  "${ScaLFMM_CXX_FLAGS}   -Wzero-as-null-pointer-constant")
+    endif()
     SET(AVX_FLAGS "-mtune=native -march=native")
 IF (APPLE)
     SET(SSE_FLAGS  "-msse3  -mfpmath=sse")   # -mtune=native -march=native
-- 
GitLab