You could manually check for a file by the name of `CMakeLists.txt` to
exist, e.g.,
```
IF (IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/subdir/
AND EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/subdir/CMakeLists.txt)
ADD_SUBDIRECTORY(subdir)
ENDIF()
```
Cheers,
Nico
On Mon, Sep 29, 2014 at 7:24 PM, Hanse
Dear List:
I recently upgraded to CMake 3.0.1, and I am now getting the error:
CMake Error at packages/stratimikos/CMakeLists.txt:15 (ADD_SUBDIRECTORY):
The source directory
/lore/ghansen/nightly/repos/publicTrilinos/packages/stratimikos/doc
does not contain a CMakeLists.txt file.