diff --git a/projects/rocr-runtime/hsakmt-backward-compat.cmake b/projects/rocr-runtime/hsakmt-backward-compat.cmake index 6e1b3a9e97..68b81a803a 100644 --- a/projects/rocr-runtime/hsakmt-backward-compat.cmake +++ b/projects/rocr-runtime/hsakmt-backward-compat.cmake @@ -48,7 +48,7 @@ function(create_header_template) #if defined(__GNUC__) -#warning \"@file_name@ has moved to @CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_INCLUDEDIR@/hsakmt and package include paths have changed.\\nInclude as \\\"hsakmt/@file_name@\\\" when using cmake packages.\" +#error \"@file_name@ has moved to @CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_INCLUDEDIR@/hsakmt and package include paths have changed.\\nInclude as \\\"hsakmt/@file_name@\\\" when using cmake packages.\" #else #pragma message(\"@file_name@ has moved to @CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_INCLUDEDIR@/hsakmt and package include paths have changed.\\nInclude as \\\"hsakmt/@file_name@\\\" when using cmake packages.\") #endif