Some improvements on hip cmake file

1.Fix unexpected repeated hip runtime lib building
2.Seperate test cmake from top cmake.

Change-Id: I1ae457effd639d6c25bca293c1724b026be21ecd
This commit is contained in:
Tao Sang
2020-12-04 11:32:28 -05:00
committed by Tao Sang
parent 09a1c22208
commit d074c2491f
4 changed files with 34 additions and 51 deletions
-5
View File
@@ -216,11 +216,6 @@ if(__HIP_ENABLE_PCH)
target_sources(amdhip64 PRIVATE ${CMAKE_BINARY_DIR}/hip_pch.o)
endif()
# TODO: we may create host_static and device_static to let app
# link amdhip64_static
# FIXME: Linux convention is to create static library with same base
# filename.
target_link_libraries(amdhip64 PRIVATE amdrocclr_static Threads::Threads dl hsa-runtime64::hsa-runtime64)
add_custom_command(TARGET amdhip64 POST_BUILD COMMAND