mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-08 21:33:55 +00:00
IBM XL: disable unused-template pragma for xl
Signed-off-by: Vicente Adolfo Bolea Sanchez <vicente.bolea@kitware.com>
This commit is contained in:
parent
074c8b1100
commit
e3d7347080
@ -22,6 +22,8 @@ elseif(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
|
||||
set(VTKM_COMPILER_IS_CLANG 1)
|
||||
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
||||
set(VTKM_COMPILER_IS_GNU 1)
|
||||
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "XLClang")
|
||||
set(VTKM_COMPILER_IS_XL 1)
|
||||
endif()
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
@ -51,7 +53,7 @@ if(VTKM_COMPILER_IS_MSVC)
|
||||
if(TARGET vtkm::cuda)
|
||||
target_compile_options(vtkm_compiler_flags INTERFACE $<$<COMPILE_LANGUAGE:CUDA>:-Xcompiler="/Gy">)
|
||||
endif()
|
||||
elseif(NOT VTKM_COMPILER_IS_PGI) #can't find an equivalant PGI flag
|
||||
elseif(NOT (VTKM_COMPILER_IS_PGI OR VTKM_COMPILER_IS_XL)) #can't find an equivalant PGI/XL flag
|
||||
target_compile_options(vtkm_compiler_flags INTERFACE $<$<COMPILE_LANGUAGE:CXX>:-ffunction-sections>)
|
||||
if(TARGET vtkm::cuda)
|
||||
target_compile_options(vtkm_compiler_flags INTERFACE $<$<COMPILE_LANGUAGE:CUDA>:-Xcompiler=-ffunction-sections>)
|
||||
|
@ -122,6 +122,10 @@
|
||||
_Pragma("GCC diagnostic ignored \"-Wnon-virtual-dtor\"") \
|
||||
_Pragma("GCC diagnostic ignored \"-Wdeprecated\"")
|
||||
_Pragma("GCC diagnostic ignored \"-Wunused-template\"")
|
||||
#elif defined(VTKM_CLANG) && defined(__ibmxl__)
|
||||
#define VTK_M_THIRDPARTY_CLANG_WARNING_PRAGMAS \
|
||||
_Pragma("GCC diagnostic ignored \"-Wnon-virtual-dtor\"") \
|
||||
_Pragma("GCC diagnostic ignored \"-Wdeprecated\"")
|
||||
#elif defined(VTKM_CLANG)
|
||||
#define VTK_M_THIRDPARTY_CLANG_WARNING_PRAGMAS \
|
||||
_Pragma("GCC diagnostic ignored \"-Wnon-virtual-dtor\"") \
|
||||
|
Loading…
Reference in New Issue
Block a user