This repository has been archived by the owner on Jan 9, 2021. It is now read-only.
forked from llvm-dcpu16/llvm-dcpu16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CMake: auto-discover project files under the projects/ subdirectory.
Patch by Viktar Zviarovich! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66230 91177308-0d34-0410-b5e6-96231b3b80d8
- Loading branch information
Oscar Fuentes
committed
Mar 6, 2009
1 parent
abab81f
commit 5c6bf65
Showing
2 changed files
with
10 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Discover the projects that use CMake in the subdirectories. | ||
# Note that explicit cmake invocation is required every time a new project is | ||
# added or removed. | ||
file(GLOB entries *) | ||
foreach(entry ${entries}) | ||
if(IS_DIRECTORY ${entry} AND EXISTS ${entry}/CMakeLists.txt) | ||
add_subdirectory(${entry}) | ||
endif() | ||
endforeach(entry) |