diff --git a/example/gmres/CMakeLists.txt b/example/gmres/CMakeLists.txt index 05b712af18..15bfaac95d 100644 --- a/example/gmres/CMakeLists.txt +++ b/example/gmres/CMakeLists.txt @@ -1,6 +1,8 @@ KOKKOSKERNELS_INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR}) KOKKOSKERNELS_INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}) +# Workaround https://github.com/kokkos/kokkos/issues/4376 for ibm/xl +IF (NOT ${KOKKOS_COMPILER_IBM}) KOKKOSKERNELS_ADD_EXECUTABLE( gmres_ex_real_A SOURCES ex_real_A.cpp @@ -21,3 +23,7 @@ KOKKOSKERNELS_ADD_EXECUTABLE_AND_TEST( SOURCES test_prec.cpp ) +ELSE () + MESSAGE (STATUS "SKIPPING gmres examples - Kokkos::complex unsupported with ibm/xlC as host compiler") +ENDIF () +