From b9d9cbb77af3d91b2dfc74d1eb2c563cc84f710f Mon Sep 17 00:00:00 2001 From: Illia Silin <98187287+illsilin@users.noreply.github.com> Date: Fri, 23 Aug 2024 15:11:47 -0700 Subject: [PATCH] fix codegen rtc lib build issue (#1485) [ROCm/composable_kernel commit: 25935b57a0eac3284b450c2a34a1914a49eca077] --- CMakeLists.txt | 4 +--- codegen/CMakeLists.txt | 2 -- codegen/test/CMakeLists.txt | 2 +- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5012635d3a..697eb3b745 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -553,9 +553,7 @@ if(NOT DEFINED INSTANCES_ONLY) PACKAGE_NAME examples ) add_subdirectory(example) - if(BUILD_TESTING) - add_subdirectory(test) - endif() + add_subdirectory(test) rocm_package_setup_component(profiler LIBRARY_NAME composablekernel diff --git a/codegen/CMakeLists.txt b/codegen/CMakeLists.txt index 1d8167b4be..3b3e9f06ee 100644 --- a/codegen/CMakeLists.txt +++ b/codegen/CMakeLists.txt @@ -50,6 +50,4 @@ rocm_install( ) rocm_install(DIRECTORY include/ck DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}) -if(BUILD_TESTING) add_subdirectory(test) -endif() diff --git a/codegen/test/CMakeLists.txt b/codegen/test/CMakeLists.txt index e943d4ff5b..3ca3f39a30 100644 --- a/codegen/test/CMakeLists.txt +++ b/codegen/test/CMakeLists.txt @@ -12,7 +12,7 @@ if(NOT INSTANCES_ONLY) add_test(NAME codegen_test_${BASE_NAME} COMMAND codegen_test_${BASE_NAME}) message("adding test codegen_test_${BASE_NAME}") target_link_libraries(codegen_test_${BASE_NAME} ck_rtc ck_host) - target_include_directories(codegen_test_${BASE_NAME} PUBLIC include()) + target_include_directories(codegen_test_${BASE_NAME} PUBLIC ${CK_ROOT}/codegen/test/include) target_include_directories(codegen_test_${BASE_NAME} PUBLIC ${CK_ROOT}/include) target_include_directories(codegen_test_${BASE_NAME} PUBLIC ${CK_ROOT}/library/include) endforeach()