diff --git a/projects/rocr-runtime/hsakmt-backward-compat.cmake b/projects/rocr-runtime/hsakmt-backward-compat.cmake index 89f356c552..6e1b3a9e97 100644 --- a/projects/rocr-runtime/hsakmt-backward-compat.cmake +++ b/projects/rocr-runtime/hsakmt-backward-compat.cmake @@ -41,7 +41,21 @@ function(create_header_template) LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - */\n\n#ifndef @include_guard@\n#define @include_guard@ \n\n#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.\")\n@include_statements@\n\n#endif") + */ + +#ifndef @include_guard@ +#define @include_guard@ + + +#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.\" +#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 + +@include_statements@ + +#endif") endfunction() #use header template file and generate wrapper header files