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