[OFFLOAD] Fix issue where host plugin is added twice to the plugin list (#181346)
This commit is contained in:
@@ -162,7 +162,11 @@ if(LIBOMPTARGET_PLUGINS_TO_BUILD STREQUAL "all")
|
||||
set(LIBOMPTARGET_PLUGINS_TO_BUILD ${LIBOMPTARGET_ALL_PLUGIN_TARGETS})
|
||||
endif()
|
||||
|
||||
list(APPEND LIBOMPTARGET_PLUGINS_TO_BUILD "host")
|
||||
# Add host if not already in LIBOMPTARGET_PLUGINS_TO_BUILD
|
||||
list(FIND LIBOMPTARGET_PLUGINS_TO_BUILD "host" FOUND_HOST)
|
||||
if(FOUND_HOST EQUAL -1)
|
||||
list(APPEND LIBOMPTARGET_PLUGINS_TO_BUILD "host")
|
||||
endif()
|
||||
|
||||
if(NOT (CMAKE_SYSTEM_PROCESSOR MATCHES "(x86_64)|(ppc64le)|(aarch64)$"
|
||||
AND CMAKE_SYSTEM_NAME MATCHES "Linux"))
|
||||
|
||||
Reference in New Issue
Block a user