Skip to content
This repository was archived by the owner on Mar 28, 2020. It is now read-only.

Commit 67f56cc

Browse files
author
Chris Bieneman
committed
[CMake] Add variables for tracking which runtimes are included
This allows sub-projects to have conditionals based on the presence of other projects. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@279172 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 664ab5e commit 67f56cc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

runtimes/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR})
4848
# The subdirectories need to treat this as standalone builds
4949
set(${canon_name}_STANDALONE_BUILD On)
5050

51+
# Setting a variable to let sub-projects detect which other projects
52+
# will be included under here.
53+
set(HAVE_${canon_name} On)
54+
5155
add_subdirectory(${projName})
5256
endforeach()
5357

0 commit comments

Comments
 (0)