Unverified Commit 2525864f authored by Ruturaj Vaidya's avatar Ruturaj Vaidya Committed by GitHub
Browse files

Update CMakeLists.txt (#1364)

It is a good practice to check if the file CMakeLists.txt is in fact in the directory.
parent fafa567b
......@@ -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()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment