P4 to Git Change 1403323 by lmoriche@lmoriche_opencl_dev2 on 2017/04/27 10:58:55

SWDEV-102733 - [OCL-LC-ROCm] Cmake build Write CMakeLists.txt to enable building with and without the DK environment
	- Fix the Makefile and CMakeLists after removing libHSAIL.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/CMakeLists.txt#3 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/build/Makefile.oclrocm#14 edit


[ROCm/clr commit: 0a139b1670]
This commit is contained in:
foreman
2017-04-27 11:15:31 -04:00
parent 428b2f64ad
commit bfeb26c58a
@@ -48,8 +48,6 @@ add_library(oclrocm OBJECT
)
set_target_properties(oclrocm PROPERTIES POSITION_INDEPENDENT_CODE ON)
add_dependencies(oclrocm libhsail-includes)
foreach(header ${headers})
string(REGEX REPLACE "([^._-]*)(.*).amdgcn.inc" "${CMAKE_BINARY_DIR}/library/amdgcn/\\1/\\1\\2.lib.bc" bclib ${header})
string(REGEX REPLACE ".inc$" "" target ${header})