mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 20:39:47 +00:00
[CMake] Add variables for tracking which runtimes are included
This allows sub-projects to have conditionals based on the presence of other projects. llvm-svn: 279172
This commit is contained in:
parent
726f14e478
commit
046e2963b8
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user