[llvm] r279172 - [CMake] Add variables for tracking which runtimes are included
Chris Bieneman via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 18 15:18:12 PDT 2016
Author: cbieneman
Date: Thu Aug 18 17:18:11 2016
New Revision: 279172
URL: http://llvm.org/viewvc/llvm-project?rev=279172&view=rev
Log:
[CMake] Add variables for tracking which runtimes are included
This allows sub-projects to have conditionals based on the presence of other projects.
Modified:
llvm/trunk/runtimes/CMakeLists.txt
Modified: llvm/trunk/runtimes/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/runtimes/CMakeLists.txt?rev=279172&r1=279171&r2=279172&view=diff
==============================================================================
--- llvm/trunk/runtimes/CMakeLists.txt (original)
+++ llvm/trunk/runtimes/CMakeLists.txt Thu Aug 18 17:18:11 2016
@@ -48,6 +48,10 @@ if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_
# 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()
More information about the llvm-commits
mailing list