Fix build error when building with MIOPEN_REQ_LIBS_ONLY=ON (#2383)

Co-authored-by: John Shumway <john.shumwayjr@gmail.com>

[ROCm/composable_kernel commit: 42e246e90f]
This commit is contained in:
JonathanLichtnerAMD
2025-06-24 08:30:42 -06:00
committed by GitHub
parent eb4b7c65ff
commit 79c30fbb3b

View File

@@ -634,7 +634,7 @@ option(BUILD_MHA_LIB "Build the static library for flash attention" OFF)
add_subdirectory(library)
if(NOT GPU_ARCHS AND USER_GPU_TARGETS)
if(NOT GPU_ARCHS AND USER_GPU_TARGETS AND NOT MIOPEN_REQ_LIBS_ONLY)
rocm_package_setup_component(tests
LIBRARY_NAME composablekernel
PACKAGE_NAME tests # Prevent -static suffix on package name