diff --git a/projects/clr/opencl/opencl-backward-compat.cmake b/projects/clr/opencl/opencl-backward-compat.cmake index 92e08898ca..84a9cdf388 100644 --- a/projects/clr/opencl/opencl-backward-compat.cmake +++ b/projects/clr/opencl/opencl-backward-compat.cmake @@ -53,10 +53,10 @@ function(create_header_template) #ifndef @include_guard@ #define @include_guard@ -#if defined(_MSC_VER) +#if defined(__GNUC__) +#error \"This file is deprecated. Use file from include path /opt/rocm-ver/include/ and prefix with CL\" +#else #pragma message(\"This file is deprecated. Use file from include path /opt/rocm-ver/include/ and prefix with CL\") -#elif defined(__GNUC__) -#warning \"This file is deprecated. Use file from include path /opt/rocm-ver/include/ and prefix with CL\" #endif @include_statements@