diff --git a/Examples/ChangeDetection/CMakeLists.txt b/Examples/ChangeDetection/CMakeLists.txt
index 2f61d4c6d5ace32416f16ce10de38c6813b3d6d6..12d7a7b40a3f4db15276db8bc74dcd17702d5cb1 100644
--- a/Examples/ChangeDetection/CMakeLists.txt
+++ b/Examples/ChangeDetection/CMakeLists.txt
@@ -37,6 +37,13 @@ TARGET_LINK_LIBRARIES(KullbackLeiblerProfileChDet OTBIO OTBCommon gdal ITKCommon
 
 IF( NOT OTB_DISABLE_CXX_TESTING AND NOT OTB_DISABLE_CXX_EXAMPLES_TESTING)
 
+IF(CMAKE_COMPILER_IS_GNUCXX)
+  SET_SOURCE_FILES_PROPERTIES(
+        otbChangeDetectionExamplesTests.cxx
+        PROPERTIES COMPILE_FLAGS -Wno-comment
+  )
+ENDIF(CMAKE_COMPILER_IS_GNUCXX)
+
 SET(BASELINE ${OTB_DATA_ROOT}/Baseline/Examples/ChangeDetection)
 
 SET(INPUTDATA ${OTB_SOURCE_DIR}/Examples/Data)