From ff15a1254fd33f5b7aa35e8fb5f8f5a91a138e58 Mon Sep 17 00:00:00 2001 From: Ruturaj Vaidya Date: Thu, 27 Jun 2024 14:34:25 -0500 Subject: [PATCH] Update CMakeLists.txt (#1364) It is a good practice to check if the file CMakeLists.txt is in fact in the directory. [ROCm/composable_kernel commit: 2525864fdae349ce8e839faec8971be915116b0f] --- example/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/CMakeLists.txt b/example/CMakeLists.txt index c9781637d6..87c5a89f8a 100644 --- a/example/CMakeLists.txt +++ b/example/CMakeLists.txt @@ -181,7 +181,7 @@ endfunction(add_example_executable_no_testing EXAMPLE_NAME) # add all example subdir file(GLOB dir_list LIST_DIRECTORIES true *) FOREACH(subdir ${dir_list}) - IF(IS_DIRECTORY "${subdir}") + if(IS_DIRECTORY "${subdir}" AND EXISTS "${subdir}/CMakeLists.txt") add_subdirectory(${subdir}) ENDIF() ENDFOREACH()