Fix hip-config.cmake for hip-clang

Define HIP_COMPILER and HIP_RUNTIME in hip-config.cmake to
facilitate other packages identify hip-clang and HIP/VDI
runtime.


[ROCm/clr commit: a781d2e017]
This commit is contained in:
Yaxun (Sam) Liu
2019-04-09 16:41:01 -04:00
parent 8d78207849
commit 65aa1eb59c
2 changed files with 4 additions and 0 deletions
@@ -39,6 +39,8 @@ if (NOT _CMakeFindDependencyMacro_FOUND)
endmacro()
endif()
set(HIP_COMPILER "@HIP_COMPILER@")
set(HIP_RUNTIME "@HIP_RUNTIME@")
set_and_check( hip_INCLUDE_DIR "@PACKAGE_INCLUDE_INSTALL_DIR@" )
set_and_check( hip_INCLUDE_DIRS "${hip_INCLUDE_DIR}" )
@@ -39,6 +39,8 @@ if (NOT _CMakeFindDependencyMacro_FOUND)
endmacro()
endif()
set(HIP_COMPILER "@HIP_COMPILER@")
set(HIP_RUNTIME "@HIP_RUNTIME@")
set_and_check( hip_INCLUDE_DIR "@PACKAGE_INCLUDE_INSTALL_DIR@" )
set_and_check( hip_INCLUDE_DIRS "${hip_INCLUDE_DIR}" )