diff --git a/projects/rocr-runtime/runtime/hsa-runtime/hsa-backward-compat.cmake b/projects/rocr-runtime/runtime/hsa-runtime/hsa-backward-compat.cmake index 0f6e34cc61..10fc5d3b95 100644 --- a/projects/rocr-runtime/runtime/hsa-runtime/hsa-backward-compat.cmake +++ b/projects/rocr-runtime/runtime/hsa-runtime/hsa-backward-compat.cmake @@ -48,11 +48,7 @@ function(create_header_template) #ifndef @include_guard@ #define @include_guard@ -#if defined(_MSC_VER) -#pragma message(\"@file_name@ has moved to @CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_INCLUDEDIR@/hsa and package include paths have changed.\\nInclude as \\\"hsa/@file_name@\\\" when using cmake packages.\") -#elif defined(__GNUC__) -#warning \"@file_name@ has moved to @CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_INCLUDEDIR@/hsa and package include paths have changed.\\nInclude as \\\"hsa/@file_name@\\\" when using cmake packages.\" -#endif +#error \"@file_name@ has moved to @CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_INCLUDEDIR@/hsa and package include paths have changed.\\nInclude as \\\"hsa/@file_name@\\\" when using cmake packages.\" @include_statements@ #endif")