From 996df70de93d581ed7859c33e586a14fce025ba8 Mon Sep 17 00:00:00 2001 From: David Salinas Date: Wed, 22 Jul 2020 10:38:10 -0400 Subject: [PATCH] correct -x option in hip::device Change-Id: I8c288e678b4357019144a024395cda1fcead61fc --- hipamd/hip-config.cmake.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hipamd/hip-config.cmake.in b/hipamd/hip-config.cmake.in index 27e7c03fbf..ba340134f7 100644 --- a/hipamd/hip-config.cmake.in +++ b/hipamd/hip-config.cmake.in @@ -156,13 +156,13 @@ if(HIP_COMPILER STREQUAL "clang") if (EXISTS ${AMD_DEVICE_LIBS_PREFIX}/amdgcn/bitcode) set_property(TARGET hip::device APPEND PROPERTY - INTERFACE_COMPILE_OPTIONS -x hip + INTERFACE_COMPILE_OPTIONS -xhip ) else() # This path is to support an older build of the device library # TODO: To be removed in the future. set_property(TARGET hip::device APPEND PROPERTY - INTERFACE_COMPILE_OPTIONS -x hip --hip-device-lib-path=${AMD_DEVICE_LIBS_PREFIX}/lib + INTERFACE_COMPILE_OPTIONS -xhip --hip-device-lib-path=${AMD_DEVICE_LIBS_PREFIX}/lib ) endif()