From 6cf5cf40b3d930f226fcb171c93e4ffa47ab05a8 Mon Sep 17 00:00:00 2001 From: JonathanLichtnerAMD <195780826+JonathanLichtnerAMD@users.noreply.github.com> Date: Tue, 24 Jun 2025 08:30:42 -0600 Subject: [PATCH] Fix build error when building with MIOPEN_REQ_LIBS_ONLY=ON (#2383) Co-authored-by: John Shumway [ROCm/composable_kernel commit: 42e246e90fa42d7dd745b9e843c62f4d90540af8] --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b0fc725236..6e032a30cf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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