Without it FTBFS and displays this error message :
cmake . && make
(...)
The source directory
(...) src/CMakeFiles
does not contain a CMakeLists.txt file.
Change-Id: I08efc4667d1004a5d19575dd4464dcd89d03fb28
Bug: https://github.com/intel-iot-devkit/upm/pull/75
Origin: https://github.com/intel-iot-devkit/upm/pull/75
Signed-off-by: Philippe Coval <philippe.coval@open.eurogiciel.org>
subdirlist(SUBDIRS ${CMAKE_CURRENT_SOURCE_DIR})
foreach(subdir ${SUBDIRS})
- add_subdirectory(${subdir})
+ if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${subdir}/CMakeLists.txt)
+ add_subdirectory(${subdir})
+ endif()
endforeach()