diff --git a/CMakeLists.txt b/CMakeLists.txt index 9a8bc84831d..9626b9fbed9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -185,7 +185,7 @@ if (WITH_CUDA) find_package(HIP MODULE) message(STATUS "Found HIP compiler: ${HIP_HIPCC_EXECUTABLE}") set(CUDA 1) - list(APPEND HIP_HCC_FLAGS "-Wno-macro-redefined") + list(APPEND HIP_HCC_FLAGS "-Wno-macro-redefined -Wno-duplicate-decl-specifier") HIP_INCLUDE_DIRECTORIES("${CMAKE_BINARY_DIR}/src/core" "${CMAKE_SOURCE_DIR}/src/core") function(cuda_include_directories) HIP_INCLUDE_DIRECTORIES(${ARGV})