Replace the obsolete offload-arch flags with GPU_TARGETS and fix a bug. (#437)

* replace obsolete offload-arch flags with GPU_TARGETS

* fix a build error for client app

* replace commma with semicolon in GPU_TARGETS
This commit is contained in:
Illia Silin
2022-09-22 07:32:25 -07:00
committed by GitHub
parent 7acbf104df
commit aa0b05156f
2 changed files with 7 additions and 7 deletions

View File

@@ -9,7 +9,7 @@ message(STATUS "Build with HIP ${hip_VERSION}")
# add all example subdir
file(GLOB dir_list LIST_DIRECTORIES true *)
FOREACH(subdir ${dir_list})
IF(IS_DIRECTORY "${subdir}")
IF(IS_DIRECTORY "${subdir}" AND (NOT "${subdir}" MATCHES "build"))
add_subdirectory(${subdir})
ENDIF()
ENDFOREACH()