projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
91f95f0
)
[CMake] Add variables for tracking which runtimes are included
author
Chris Bieneman
<beanz@apple.com>
Thu, 18 Aug 2016 22:18:11 +0000
(22:18 +0000)
committer
Chris Bieneman
<beanz@apple.com>
Thu, 18 Aug 2016 22:18:11 +0000
(22:18 +0000)
This allows sub-projects to have conditionals based on the presence of other projects.
llvm-svn: 279172
llvm/runtimes/CMakeLists.txt
patch
|
blob
|
history
diff --git
a/llvm/runtimes/CMakeLists.txt
b/llvm/runtimes/CMakeLists.txt
index
3f9febc
..
bbdebff
100644
(file)
--- a/
llvm/runtimes/CMakeLists.txt
+++ b/
llvm/runtimes/CMakeLists.txt
@@
-48,6
+48,10
@@
if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR})
# The subdirectories need to treat this as standalone builds
set(${canon_name}_STANDALONE_BUILD On)
+ # Setting a variable to let sub-projects detect which other projects
+ # will be included under here.
+ set(HAVE_${canon_name} On)
+
add_subdirectory(${projName})
endforeach()