Fixes and updates to BlueGene/Q support
[alexxy/gromacs.git] / src / gromacs / onlinehelp / tests / CMakeLists.txt
index 01dd85eff81efb4e84a1abb9ef2aa31da8c5ddb2..1e47c92f7b594acfba944f0fb27d7800927d42a8 100644 (file)
 gmx_add_unit_test_object_library(onlinehelp-test-shared
                                  mock_helptopic.cpp)
 
+if (CMAKE_CXX_COMPILER_ID MATCHES "XL")
+    # This suppression stops a very verbose cascade of messages about the
+    # mocks, which is probably a compiler issue.
+    #   1540-2924 (W) Cannot pass an argument of non-POD class type "const gmx::HelpWriterContext" through ellipsis.
+    set_property(SOURCE mock_helptopic.cpp PROPERTY COMPILE_FLAGS "-qsuppress=1540-2924")
+endif()
+
 gmx_add_unit_test(OnlineHelpUnitTests onlinehelp-test
                   helpformat.cpp
                   helpmanager.cpp