From e2f6d2f26cf3dfeae40c197e505bef43d4c4f95d Mon Sep 17 00:00:00 2001 From: agodavar Date: Tue, 13 Oct 2020 01:38:36 -0400 Subject: [PATCH] SWDEV-249870: Short-Term solution for Pre-Compiled Headers for Online Compilation - Fix static build Change-Id: Ib608e73dbffa2d803599cba5ba842cd5a2a2ba9d [ROCm/hip commit: 2080cc113a2d767352b512b9d24c0620b6dee790] --- projects/hip/rocclr/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/hip/rocclr/CMakeLists.txt b/projects/hip/rocclr/CMakeLists.txt index 64d581959d..630feba93f 100755 --- a/projects/hip/rocclr/CMakeLists.txt +++ b/projects/hip/rocclr/CMakeLists.txt @@ -224,7 +224,7 @@ target_link_libraries(device INTERFACE host) # Short-Term solution for pre-compiled headers for online compilation if(__HIP_ENABLE_PCH) - target_link_libraries(amdhip64 PRIVATE ${CMAKE_BINARY_DIR}/hip_pch.o) + target_sources(amdhip64 PRIVATE ${CMAKE_BINARY_DIR}/hip_pch.o) endif() # TODO: we may create host_static and device_static to let app