From e20fd6494d43be7c8a7871a293bf0f939fb3f7f7 Mon Sep 17 00:00:00 2001 From: Michael Kuron Date: Sat, 8 Dec 2018 07:48:01 +0100 Subject: [PATCH] Fix broken ROCm build --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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})