mirror of https://github.com/ARMmbed/mbed-os.git
CMake: mbed_add_cmake_directory_if_labels checks presence of CMakeLists.txt before adding subdirectory
parent
9d1ae521e8
commit
30ec7fa901
|
@ -11,7 +11,9 @@ function(mbed_add_cmake_directory_if_labels PREFIX)
|
|||
# assumption: relative path, no need to check for absolute here
|
||||
set(path ${CMAKE_CURRENT_SOURCE_DIR}/${key})
|
||||
if (EXISTS ${path})
|
||||
add_subdirectory(${path})
|
||||
if (EXISTS "${path}/CMakeLists.txt")
|
||||
add_subdirectory(${path})
|
||||
endif()
|
||||
endif()
|
||||
endforeach()
|
||||
endfunction()
|
||||
|
|
Loading…
Reference in New Issue